Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.91ms] Passed 4 tests
This is a short check of server-side resources used by PageMagic - Page Lists
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.58 ▼6.23 |
Dashboard /wp-admin | 3.37 ▲0.02 | 55.50 ▼6.40 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.91 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 101.65 ▲8.60 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.40 ▼4.41 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for PageMagic - Page Lists
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲5 | 14.35 ▲0.00 | 2.31 ▲0.07 | 42.05 ▲1.50 |
Dashboard /wp-admin | 2,195 ▲21 | 5.54 ▲0.01 | 93.52 ▲2.89 | 43.49 ▲3.03 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▼0.00 | 36.42 ▼0.87 | 35.14 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.03 ▼0.57 | 658.07 ▼41.19 | 59.18 ▲5.79 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.08 | 103.32 ▼9.77 | 46.25 ▲0.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagemagic-page-lists/page-list.php:18
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
pagemagic-page-lists/page-list.php 92% from 13 tests
"PageMagic - Page Lists" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pagemagic-page-lists.php" instead of "page-list.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin582 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 39 | 490 |
CSS | 1 | 4 | 4 | 74 |
SVG | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot 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.46 |
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 | 12 | |
▷ Named functions | 12 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.68MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 9.64KB | 9.67KB | 0.00% |
assets/icon-128x128.png | 9.76KB | 5.26KB | ▼ 46.08% |
assets/screenshot-4.png | 337.87KB | 363.14KB | 0.00% |
assets/icon-256x256.png | 28.43KB | 13.48KB | ▼ 52.61% |
assets/screenshot-2.png | 34.56KB | 36.91KB | 0.00% |