Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲2.02ms] 75% from 4 tests
This is a short check of server-side resources used by RockPress
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,136.30ms on /wp-admin/admin.php?page=rockpress-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 47.16 ▲1.26 |
Dashboard /wp-admin | 3.95 ▲0.65 | 52.31 ▼2.74 |
Posts /wp-admin/edit.php | 4.00 ▲0.64 | 54.50 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 112.62 ▲19.86 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 47.86 ▲10.20 |
Welcome /wp-admin/admin.php?page=rockpress | 3.77 | 39.77 |
Settings /wp-admin/admin.php?page=rockpress-settings | 3.78 | 37.56 |
Add-ons /wp-admin/admin.php?page=rockpress-addons | 3.85 | 1,136.30 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
rockpress_settings |
rockpress_licenses |
rockpress_rock |
Browser metrics Passed 4 tests
Checking browser requirements for RockPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 13.58 ▼0.80 | 1.72 ▼0.26 | 42.85 ▼5.94 |
Dashboard /wp-admin | 2,353 ▲168 | 4.89 ▼0.96 | 113.62 ▲10.61 | 44.77 ▲2.55 |
Posts /wp-admin/edit.php | 2,239 ▲150 | 2.07 ▲0.05 | 42.80 ▲5.90 | 36.65 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.27 ▲0.18 | 685.07 ▼39.14 | 58.50 ▼0.14 |
Media Library /wp-admin/upload.php | 1,538 ▲147 | 4.30 ▲0.12 | 112.63 ▲0.34 | 48.73 ▲0.77 |
Welcome /wp-admin/admin.php?page=rockpress | 991 | 2.07 | 26.47 | 62.86 |
Settings /wp-admin/admin.php?page=rockpress-settings | 1,019 | 2.23 | 25.07 | 25.94 |
Add-ons /wp-admin/admin.php?page=rockpress-addons | 905 | 2.11 | 25.51 | 22.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- rockpress_settings
- rockpress_licenses
- rockpress_rock
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ft-rockpress/templates/service-times.php
- > /wp-content/plugins/ft-rockpress/templates/campus-selector.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ft-rockpress/templates/service-times.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/ft-rockpress/lib/wp-background-processing/wp-background-process.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ft-rockpress/templates/campus-selector.php on line 10
- > PHP Notice
Undefined variable: data in wp-content/plugins/ft-rockpress/templates/service-times.php on line 10
- > PHP Notice
Undefined variable: data in wp-content/plugins/ft-rockpress/templates/campus-selector.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: rockrms, church, rock rms, chms
ft-rockpress/ft-rockpress.php Passed 13 tests
The principal PHP file in "RockPress" v. 1.0.17 is loaded by WordPress automatically on each request
57 characters long description:
Display information from Rock RMS on your WordPress site.
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
There were no executable files found in this plugin3,892 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,075 | 2,042 | 3,289 |
JavaScript | 7 | 103 | 34 | 460 |
CSS | 3 | 21 | 13 | 138 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 3 | 9.68% |
▷ Concrete classes | 28 | 90.32% |
▷ Final classes | 1 | 3.57% |
Methods | 185 | |
▷ Static methods | 15 | 8.11% |
▷ Public methods | 134 | 72.43% |
▷ Protected methods | 28 | 15.14% |
▷ Private methods | 23 | 12.43% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
8 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/rock-shop-plugin.png | 69.67KB | 37.40KB | ▼ 46.31% |
assets/images/widget-service-times.png | 43.92KB | 12.32KB | ▼ 71.94% |
assets/images/rock-security-role.png | 31.14KB | 9.58KB | ▼ 69.22% |
assets/images/rock-permissions.png | 13.29KB | 7.39KB | ▼ 44.39% |
assets/images/rest-key-information.png | 38.29KB | 12.11KB | ▼ 68.37% |