94% easyread

Code Review | Easyread

WordPress plugin Easyread scored 94% from 54 tests.

About plugin

  • Plugin page: easyread
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: Apr 9, 2021
  • Latest release: May 28, 2021
  • Number of updates: 19
  • Update frequency: every 2.7 days
  • Top authors: devsanjog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 144 total downloads


Plugin footprint Passed 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.06MB] [CPU: ▼141.14ms] Passed 4 tests

Analyzing server-side resources used by Easyread
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0629.56 ▲3.36
Dashboard /wp-admin3.12 ▲0.0644.96 ▲1.36
Posts /wp-admin/edit.php3.24 ▲0.1344.23 ▲0.75
Add New Post /wp-admin/post-new.php5.48 ▲0.0484.56 ▼564.37
Media Library /wp-admin/upload.php3.07 ▲0.0632.64 ▼2.31
Easyread /wp-admin/options-general.php?page=easyread-plugin3.0427.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Easyread
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,832 ▲25016.11 ▲0.619.21 ▲0.9448.71 ▼0.32
Dashboard /wp-admin3,112 ▲1796.45 ▲0.25139.16 ▼31.46111.77 ▲2.81
Posts /wp-admin/edit.php2,864 ▲1253.11 ▲0.3968.87 ▲5.3094.25 ▼0.49
Add New Post /wp-admin/post-new.php3,979 ▲2,47919.11 ▲0.51451.67 ▲62.81111.85 ▲0.90
Media Library /wp-admin/upload.php1,932 ▲1255.44 ▲0.40123.04 ▼22.63116.52 ▼10.16
Easyread /wp-admin/options-general.php?page=easyread-plugin1,2422.6255.1375.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'EASYREAD__PLUGIN_DIRerinc/base/ErBaseController.php' (include_path='.:/usr/share/php') in wp-content/plugins/easyread/erinc/pages/Admin.php on line 10
    • > PHP Warning
      require_once(EASYREAD__PLUGIN_DIRerinc/base/ErBaseController.php): failed to open stream: No such file or directory in wp-content/plugins/easyread/erinc/pages/Admin.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easyread/templates/admin.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Erinc\\Base\\ErBaseController' not found in wp-content/plugins/easyread/erinc/base/ErEnqueue.php:9
    • > PHP Warning
      Use of undefined constant EASYREAD__PLUGIN_DIR - assumed 'EASYREAD__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easyread/erinc/pages/Admin.php on line 10

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === easyread === )
The official readme.txt is a good inspiration

easyread/easyread.php Passed 13 tests

The entry point to "Easyread" version 1.0.0 is a PHP file that has certain tags in its header comment area
87 characters long description:
This plugin splits large paragraphs up automatically by a specific number of sentences.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected422 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
▷ Static methods838.10%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There were not PNG files found in your plugin