Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.46ms] Passed 4 tests
Server-side resources used by Article Difficulty Level
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.59 ▲0.52 |
Dashboard /wp-admin | 3.37 ▲0.03 | 50.62 ▼8.39 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 50.80 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 94.93 ▼8.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.35 ▲1.10 |
Article Difficulty /wp-admin/options-general.php?page=article-difficulty-level/bc-article-difficulty.php | 3.26 | 33.64 |
Server storage [IO: ▲4.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Article Difficulty Level
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 13.67 ▼0.92 | 1.96 ▲0.09 | 40.57 ▼2.30 |
Dashboard /wp-admin | 2,234 ▲34 | 5.88 ▲1.00 | 97.43 ▼9.76 | 38.80 ▼2.21 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 2.01 ▼0.04 | 38.79 ▼2.03 | 34.75 ▼1.46 |
Add New Post /wp-admin/post-new.php | 6,273 ▲4,742 | 26.01 ▲2.79 | 902.93 ▲224.03 | 57.06 ▲6.65 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.21 ▼0.00 | 100.29 ▼18.47 | 47.10 ▼0.69 |
Article Difficulty /wp-admin/options-general.php?page=article-difficulty-level/bc-article-difficulty.php | 969 | 1.76 | 28.19 | 34.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/article-difficulty-level/tags/1.1/bc-article-difficulty.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/article-difficulty-level/tags/1.1.2/bc-article-difficulty.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/article-difficulty-level/tags/1.1.2/bc-article-difficulty.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/article-difficulty-level/tags/1.1/bc-article-difficulty.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Option setting page.), #2 (Post Area Selection.), #3 (Post Strength mode selection), #4 (Rating below the post), #5 (Rating above the post)
article-difficulty-level/article-difficulty-level.php Passed 13 tests
The main PHP file in "Article Difficulty Level" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
119 characters long description:
Through this plugin, user can able to select the articles difficulty level in admin dash board post area for each post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,664 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 745 | 916 | 2,605 |
SVG | 2 | 0 | 0 | 1,205 |
JavaScript | 1 | 138 | 37 | 822 |
CSS | 3 | 5 | 6 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 119 | |
▷ Named functions | 119 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
134 PNG files occupy 2.62MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tags/3.0/screenshot-5.png | 30.65KB | 10.71KB | ▼ 65.06% |
screenshot-2.png | 39.88KB | 16.12KB | ▼ 59.59% |
tags/2.2.2/js/hv.png | 2.80KB | 7.32KB | 0.00% |
tags/1.1.4/screenshot-3.png | 27.04KB | 11.46KB | ▼ 57.61% |
tags/1.1.3/screenshot-2.png | 72.89KB | 32.08KB | ▼ 55.99% |