Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 29.56 ▲3.36 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.96 ▲1.36 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 44.23 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 84.56 ▼564.37 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 32.64 ▼2.31 |
Easyread /wp-admin/options-general.php?page=easyread-plugin | 3.04 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,832 ▲250 | 16.11 ▲0.61 | 9.21 ▲0.94 | 48.71 ▼0.32 |
Dashboard /wp-admin | 3,112 ▲179 | 6.45 ▲0.25 | 139.16 ▼31.46 | 111.77 ▲2.81 |
Posts /wp-admin/edit.php | 2,864 ▲125 | 3.11 ▲0.39 | 68.87 ▲5.30 | 94.25 ▼0.49 |
Add New Post /wp-admin/post-new.php | 3,979 ▲2,479 | 19.11 ▲0.51 | 451.67 ▲62.81 | 111.85 ▲0.90 |
Media Library /wp-admin/upload.php | 1,932 ▲125 | 5.44 ▲0.40 | 123.04 ▼22.63 | 116.52 ▼10.16 |
Easyread /wp-admin/options-general.php?page=easyread-plugin | 1,242 | 2.62 | 55.13 | 75.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
- > PHP Fatal error
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
Optimizations
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 43 | 94 | 305 |
JavaScript | 3 | 13 | 24 | 62 |
CSS | 1 | 3 | 0 | 55 |
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 code | 0.28 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 21 | |
▷ Static methods | 8 | 38.10% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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