10% easy

Code Review | Easy

WordPress plugin Easy scored10%from 54 tests.

About plugin

  • Plugin page: easy
  • Plugin version: 0.9.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5.3
  • WordPress version: 6.3.1
  • First release: Sep 19, 2012
  • Latest release: Jul 14, 2016
  • Number of updates: 119
  • Update frequency: every 11.7 days
  • Top authors: o----o (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

80+ active /26,176 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/easy/2046-easy.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; Easy_2046_builder has a deprecated constructor

Server metrics [RAM: ▼1.68MB] [CPU: ▼60.16ms] Passed 4 tests

An overview of server-side resources used by Easy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.31 ▼1.165.73 ▼42.74
Dashboard /wp-admin2.33 ▼0.988.80 ▼44.91
Posts /wp-admin/edit.php2.33 ▼1.036.78 ▼42.96
Add New Post /wp-admin/post-new.php2.33 ▼3.566.98 ▼110.01
Media Library /wp-admin/upload.php2.33 ▼0.906.53 ▼34.93

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_builder_2046_main_loop-widget
theysaidso_admin_options
easy_2046_
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Easy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.201.73 ▼0.0444.47 ▲0.27
Dashboard /wp-admin2,195 ▲185.55 ▼0.0289.09 ▲1.4337.87 ▼4.99
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1232.71 ▼5.9835.21 ▼0.80
Add New Post /wp-admin/post-new.php1,536 ▲1023.26 ▼0.46670.62 ▼2.4654.34 ▲3.66
Media Library /wp-admin/upload.php1,403 ▼04.30 ▲0.1395.23 ▼9.6742.54 ▼5.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/easy/2046-easy.php+38
    Methods with the same name as their class will not be constructors in a future version of PHP; Easy_2046_builder has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_builder_2046_main_loop-widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy/includes/EasyItems.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy/includes/EasyItems.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #1 (Screenshot of the version 0.5)
The official readme.txt might help

easy/2046-easy.php 92% from 13 tests

The principal PHP file in "Easy" v. 0.9.9.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy.php" instead of "2046-easy.php")

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
Everything looks great! No dangerous files found in this plugin5,233 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP42727293,277
PO File48069581,748
JavaScript12698125
CSS16483

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity83.50
▷ Minimum class complexity35.00
▷ Maximum class complexity132.00
Average method complexity7.60
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods832.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions58
▷ Named functions58100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/here.png2.11KB1.65KB▼ 21.57%