Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼13.69ms] Passed 4 tests
An overview of server-side resources used by Cubify WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.57 ▲0.90 |
Dashboard /wp-admin | 3.32 ▼0.02 | 53.61 ▼13.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.68 ▼3.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.97 ▼38.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 42.82 ▲2.04 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Cubify WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.27 ▼1.15 | 4.48 ▲2.45 | 45.42 ▲3.03 |
Dashboard /wp-admin | 2,224 ▲21 | 4.86 ▼0.04 | 106.75 ▼0.52 | 38.32 ▼1.02 |
Posts /wp-admin/edit.php | 2,082 ▼15 | 2.06 ▲0.04 | 41.21 ▲3.83 | 38.62 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,531 ▼23 | 22.99 ▲4.91 | 727.83 ▲80.01 | 70.07 ▼1.70 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.04 | 105.38 ▼4.47 | 44.16 ▼5.51 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cubify-wp/cubify-wp.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: The plugin tags were not defined
- Screenshots: These screenshots require images: #1 (Use a shortcode to insert a cube into your content.), #2 (The cube aligned right with content.)
cubify-wp/cubify-wp.php 85% from 13 tests
The primary PHP file in "Cubify WP" version 0.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin963 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 57 | 30 | 911 |
PHP | 1 | 19 | 70 | 43 |
Sass | 1 | 0 | 0 | 7 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.65MB with 0.38MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 162.30KB | 71.68KB | ▼ 55.83% |
screenshot-1.png | 19.10KB | 9.93KB | ▼ 48.00% |
images/wat.png | 485.19KB | 144.51KB | ▼ 70.22% |