84% easy-edit-products

Code Review | Easy edit products

WordPress plugin Easy edit products scored 84% from 54 tests.

About plugin

  • Plugin page: easy-edit-products
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.8
  • WordPress version: 6.3.1
  • First release: Mar 12, 2022
  • Latest release: Mar 12, 2022
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: glboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 210 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.41ms] Passed 4 tests

Analyzing server-side resources used by Easy edit products
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.24 ▲4.40
Dashboard /wp-admin3.33 ▲0.0343.08 ▼2.45
Posts /wp-admin/edit.php3.38 ▲0.0349.21 ▲2.95
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.51 ▲3.64
Media Library /wp-admin/upload.php3.25 ▲0.0232.12 ▼2.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy edit products
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲113.51 ▼1.321.64 ▼0.4542.81 ▲3.06
Dashboard /wp-admin2,221 ▲155.32 ▼0.44100.60 ▼9.0642.03 ▲0.65
Posts /wp-admin/edit.php2,104 ▲122.39 ▲0.4042.18 ▲1.8335.03 ▼1.34
Add New Post /wp-admin/post-new.php1,526 ▼917.81 ▼5.35647.29 ▼28.5161.91 ▲9.91
Media Library /wp-admin/upload.php1,400 ▲124.52 ▲0.30104.88 ▲1.8247.07 ▼0.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-edit-products/easy-edit-products.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No tags were found

easy-edit-products/easy-edit-products.php Passed 13 tests

The entry point to "Easy edit products" version 1.0.2 is a PHP file that has certain tags in its header comment area
56 characters long description:
edit products easily in a table in one page at a second

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,044 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP112422569
JavaScript2278384
CSS271171
Markdown111020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity6.21
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/loc_icon.png5.59KB2.88KB▼ 48.61%