84% samudra-log

Code Review | Samudra Log

WordPress plugin Samudra Log scored 84% from 54 tests.

About plugin

  • Plugin page: samudra-log
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Jul 21, 2020
  • Latest release: Jun 5, 2021
  • Number of updates: 9
  • Update frequency: every 35.6 days
  • Top authors: wakamin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.19ms] Passed 4 tests

Analyzing server-side resources used by Samudra Log
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.23 ▼1.69
Dashboard /wp-admin3.32 ▲0.0244.72 ▼3.04
Posts /wp-admin/edit.php3.37 ▲0.0245.97 ▼2.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.21 ▼11.27
Media Library /wp-admin/upload.php3.24 ▲0.0233.56 ▼3.93
Samudra Log /wp-admin/options-general.php?page=samudra-log3.2437.78

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Samudra Log
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.65 ▼0.751.75 ▲0.1744.17 ▲2.69
Dashboard /wp-admin2,210 ▲225.79 ▼0.09100.29 ▼2.6339.73 ▲3.56
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0133.92 ▼6.1035.15 ▲0.38
Add New Post /wp-admin/post-new.php1,536 ▲223.20 ▲0.14652.76 ▲22.1250.96 ▲2.07
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0692.01 ▼16.5744.91 ▼1.26
Samudra Log /wp-admin/options-general.php?page=samudra-log8162.0222.1930.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/samudra-log/views/admin/setting-page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: debugging, logging

samudra-log/samudra-log.php 92% from 13 tests

"Samudra Log" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected168 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP73349110
PO File2121258

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin