Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.02ms] Passed 4 tests
Analyzing server-side resources used by Page for Random Banners
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.20 ▼0.45 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.96 ▲1.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.99 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.21 ▼14.40 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.08 ▲4.72 |
Page for Random Banners /wp-admin/edit.php?post_type=rl_pfrb_headerfooter | 3.29 | 33.25 |
Add a New Page for Random Banners /wp-admin/post-new.php?post_type=rl_pfrb_headerfooter | 3.39 | 46.42 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Page for Random Banners
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.59 ▼0.95 | 5.83 ▲4.01 | 44.69 ▼0.51 |
Dashboard /wp-admin | 2,236 ▲45 | 4.82 ▼1.07 | 93.38 ▼8.05 | 35.29 ▼7.13 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.02 | 35.48 ▼5.61 | 34.32 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,556 ▲27 | 23.13 ▲4.87 | 648.54 ▲25.57 | 58.09 ▲10.00 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.20 ▲0.03 | 93.25 ▼3.77 | 41.76 ▼0.91 |
Page for Random Banners /wp-admin/edit.php?post_type=rl_pfrb_headerfooter | 1,086 | 1.93 | 30.02 | 28.07 |
Add a New Page for Random Banners /wp-admin/post-new.php?post_type=rl_pfrb_headerfooter | 2,205 | 7.59 | 167.52 | 61.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-for-random-banners/page-for-random-banners.php:55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: A description for screenshot #3 is required in page-for-random-banners/assets to your readme.txt
page-for-random-banners/page-for-random-banners.php Passed 13 tests
The primary PHP file in "Page for Random Banners" version 1.3.1 is used by WordPress to initiate all plugin functionality
59 characters long description:
You can add (a) page(s) which display(s) banners at random.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected116 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 17 | 96 | 104 |
CSS | 2 | 4 | 36 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 1.62MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
example/images/b6.png | 0.12KB | 0.08KB | ▼ 31.45% |
example/images/b3.png | 0.12KB | 0.08KB | ▼ 31.45% |
example/images/b7.png | 0.12KB | 0.08KB | ▼ 30.33% |
example/images/b4.png | 0.12KB | 0.08KB | ▼ 31.45% |
example/images/b2.png | 0.12KB | 0.08KB | ▼ 31.45% |