Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼7.52ms] Passed 4 tests
An overview of server-side resources used by Cactus Masonry Classic
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.57 ▲1.47 |
Dashboard /wp-admin | 3.46 ▲0.12 | 45.59 ▼14.86 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.77 ▼2.22 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 82.41 ▼14.14 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.63 ▲1.16 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cactus Masonry Classic
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 14.01 ▼0.16 | 5.84 ▲3.93 | 39.74 ▼1.23 |
Dashboard /wp-admin | 2,207 ▲16 | 5.82 ▲0.94 | 95.81 ▼4.71 | 37.88 ▼5.64 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.12 ▲0.10 | 40.33 ▲0.51 | 35.85 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.37 ▲0.10 | 638.34 ▲46.61 | 55.84 ▼4.57 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▲0.03 | 92.23 ▼3.04 | 41.61 ▼1.26 |
Cactus Masonry /wp-admin/cactus-masonry-options.php | 26 | 0.44 | 0.07 | 15.27 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/masonry-post-gallery/masonry-post-gallery.php:69
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/cactus-masonry-options.php
- > Network (severe)
wp-admin/cactus-masonry-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
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
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== masonry-post-gallery ===
)
masonry-post-gallery/masonry-post-gallery.php 92% from 13 tests
The main PHP file in "Cactus Masonry Classic" ver. 1.1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 181 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,221 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 109 | 721 |
CSS | 4 | 29 | 25 | 332 |
JavaScript | 6 | 17 | 38 | 168 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 154.00 |
▷ Minimum class complexity | 154.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 9.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.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 | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 5 | 27.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 72.22% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
close.png | 0.27KB | 0.29KB | 0.00% |
prev.png | 1.33KB | 1.59KB | 0.00% |
next.png | 1.32KB | 1.58KB | 0.00% |