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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.51MB] [CPU: ▼1.11ms] Passed 4 tests
Server-side resources used by Rock Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 47.79 ▲7.44 |
Dashboard /wp-admin | 3.82 ▲0.51 | 50.67 ▼5.97 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 54.34 ▲9.05 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 88.17 ▼14.96 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 41.22 ▲9.57 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 12 new options
New WordPress options |
---|
rcp_activated_at |
theysaidso_admin_options |
widget_recent-comments |
rcp_token |
widget_recent-posts |
rcp_deactivated_at |
rcp_integrated_at |
can_compress_scripts |
rcp_timestamp |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Rock Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 13.49 ▼0.86 | 8.74 ▲7.07 | 49.13 ▲5.27 |
Dashboard /wp-admin | 2,233 ▲56 | 5.82 ▲0.23 | 93.38 ▲6.75 | 70.47 ▲35.50 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.08 ▲0.09 | 41.83 ▲2.38 | 35.46 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,583 ▲48 | 21.71 ▲3.69 | 622.38 ▲12.59 | 39.61 ▼20.72 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.23 ▲0.06 | 99.78 ▲8.53 | 83.55 ▲43.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 11 options
- rcp_activated_at
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- rcp_token
- rcp_integrated_at
- rcp_timestamp
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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: Class 'RockContent\\Admin\otificationAdmin' not found in wp-content/plugins/rock-content/inc/Admin/PluginAdmin.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: content marketing, publication
rock-content/RockContent.php 77% from 13 tests
The entry point to "Rock Content" version 3.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("rock-content.php" instead of "RockContent.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin4,651 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 495 | 1,721 | 2,510 |
Sass | 3 | 15 | 1 | 1,634 |
JavaScript | 5 | 43 | 1 | 353 |
JSON | 4 | 0 | 0 | 113 |
Markdown | 1 | 18 | 0 | 40 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 49 | 30.25% |
▷ Public methods | 139 | 85.80% |
▷ Protected methods | 1 | 0.62% |
▷ Private methods | 22 | 13.58% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 9 | |
▷ Global constants | 9 | 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
6 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/rockcontent.png | 1.18KB | 0.78KB | ▼ 33.47% |
assets/admin/img/stage_Illustration.png | 27.82KB | 11.82KB | ▼ 57.52% |
assets/admin/img/logo-rockcontent-blue.png | 7.28KB | 3.30KB | ▼ 54.68% |
.wordpress-org/banner-772x250.png | 134.17KB | 36.13KB | ▼ 73.07% |
assets/admin/img/empty_state.png | 5.51KB | 2.96KB | ▼ 46.37% |