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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.04ms] Passed 4 tests
An overview of server-side resources used by Cactus Masonry Plus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.20 ▲1.82 |
Dashboard /wp-admin | 3.39 ▲0.08 | 43.84 ▼7.41 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 45.79 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 81.58 ▼2.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.50 ▲1.08 |
Cactus Masonry Plus /wp-admin/plugins.php?page=cactus_masonry_plus_intro | 3.29 | 30.49 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Cactus Masonry Plus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.60 ▼0.76 | 8.54 ▲6.65 | 39.31 ▼8.80 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.04 | 97.33 ▼11.15 | 38.95 ▼0.11 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.07 | 40.40 ▲2.26 | 36.62 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.66 ▼5.62 | 708.03 ▲50.72 | 50.95 ▼1.19 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.22 ▼0.03 | 100.14 ▲1.98 | 43.59 ▼2.06 |
Cactus Masonry Plus /wp-admin/plugins.php?page=cactus_masonry_plus_intro | 942 | 2.17 | 25.14 | 42.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means 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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cactus-masonry-plus/cactusMasonry.php:38
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== cactus-masonry-plus ===
)
cactus-masonry-plus/cactusMasonry.php 92% from 13 tests
"Cactus Masonry Plus" version 0.0.5.5'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: It is recommended to name the main PHP file as the plugin slug ("cactus-masonry-plus.php" instead of "cactusMasonry.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,334 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 107 | 94 | 660 |
PHP | 2 | 60 | 86 | 500 |
Sass | 1 | 6 | 4 | 173 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 100.00 |
▷ Minimum class complexity | 100.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.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 | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 4 | 36.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 63.64% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin