Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.78ms] Passed 4 tests
Analyzing server-side resources used by Key Figures
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.93 ▼2.64 |
Dashboard /wp-admin | 3.47 ▲0.17 | 47.48 ▼5.42 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 50.21 ▲4.48 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.80 ▼6.99 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.55 ▼0.05 |
Key figures /wp-admin/options-general.php?page=key-figures | 3.36 | 33.04 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Key Figures
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.86 ▼0.81 | 1.63 ▼0.20 | 43.02 ▼1.28 |
Dashboard /wp-admin | 2,237 ▲63 | 5.16 ▼0.80 | 111.77 ▼8.47 | 37.12 ▼9.07 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.30 ▲0.30 | 38.59 ▲0.52 | 35.16 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.32 ▲0.06 | 663.82 ▼29.79 | 36.23 ▼36.32 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.39 ▲0.20 | 89.68 ▼8.05 | 42.90 ▼4.27 |
Key figures /wp-admin/options-general.php?page=key-figures | 2,013 | 2.47 | 69.52 | 32.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_action() in wp-content/plugins/key-figures/public/kf-public.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/key-figures/admin/kf-admin.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: figures, chiffre, keyfigures, chiffre-cl, cl...
key-figures/key-figures.php Passed 13 tests
The entry point to "Key Figures" version 1.1 is a PHP file that has certain tags in its header comment area
81 characters long description:
Display key figures with custom styles and animations in WordPress visual editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,421 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 146 | 117 | 1,327 |
JavaScript | 2 | 3 | 1 | 50 |
CSS | 2 | 2 | 6 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.70MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 67.08KB | 20.27KB | ▼ 69.78% |
assets/screenshot-1.png | 91.37KB | 23.28KB | ▼ 74.52% |
assets/screenshot-6.png | 81.78KB | 21.10KB | ▼ 74.20% |
assets/screenshot-3.png | 123.45KB | 34.51KB | ▼ 72.04% |
assets/icon-128x128.png | 8.63KB | 3.18KB | ▼ 63.15% |