Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/simple-magazine/simple-magazine.php+16
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.76MB] [CPU: ▼185.96ms] Passed 4 tests
This is a short check of server-side resources used by Simple Magazine
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼0.85 | 5.65 ▼17.71 |
Dashboard /wp-admin | 1.88 ▼1.17 | 6.79 ▼39.97 |
Posts /wp-admin/edit.php | 1.89 ▼1.22 | 6.08 ▼26.00 |
Add New Post /wp-admin/post-new.php | 1.88 ▼3.55 | 5.38 ▼650.72 |
Media Library /wp-admin/upload.php | 1.88 ▼1.12 | 6.18 ▼27.16 |
Issues /wp-admin/edit.php?post_type=simplemag-issue | 1.89 | 6.96 |
Articles /wp-admin/edit.php?post_type=simplemag-article | 1.89 | 6.34 |
Simple Magazine /wp-admin/options-general.php?page=test-setting-admin | 1.89 | 5.89 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Simple Magazine
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,732 ▲136 | 15.79 ▼0.19 | 7.59 ▼0.86 | 46.21 ▼0.58 |
Dashboard /wp-admin | 3,008 ▲77 | 5.92 ▼0.15 | 131.49 ▼21.56 | 126.41 ▲10.52 |
Posts /wp-admin/edit.php | 2,799 ▲60 | 2.68 ▼0.00 | 64.12 ▼0.35 | 90.54 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,703 ▲112 | 19.07 ▲0.29 | 384.47 ▲12.03 | 110.77 ▼7.51 |
Media Library /wp-admin/upload.php | 1,796 ▼14 | 5.01 ▼0.00 | 125.72 ▼19.51 | 153.85 ▲36.48 |
Issues /wp-admin/edit.php?post_type=simplemag-issue | 1,466 | 2.60 | 57.44 | 72.31 |
Articles /wp-admin/edit.php?post_type=simplemag-article | 1,480 | 2.63 | 57.59 | 78.29 |
Simple Magazine /wp-admin/options-general.php?page=test-setting-admin | 1,107 | 2.09 | 52.62 | 94.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/simple-magazine/simple-magazine.php+16
Constant WP_DEBUG already defined
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > Notice in wp-content/plugins/simple-magazine/simple-magazine.php+16
Constant WP_DEBUG already defined
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=test-setting-admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-magazine/simple-magazine.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/simple-magazine/issue.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
Everything seems fine on the user side
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
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
simple-magazine/simple-magazine.php Passed 13 tests
The principal PHP file in "Simple Magazine" v. 1.0 is loaded by WordPress automatically on each request
30 characters long description:
A simple magazine style plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin593 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 93 | 24 | 470 |
CSS | 2 | 27 | 1 | 111 |
Markdown | 1 | 5 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-64.png | 1.52KB | 0.53KB | ▼ 64.93% |
images/icon-16.png | 1.20KB | 0.43KB | ▼ 64.39% |
images/arrow-r.png | 1.91KB | 0.95KB | ▼ 50.28% |
images/arrow-l.png | 1.96KB | 0.99KB | ▼ 49.55% |