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 gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▲1.74ms] Passed 4 tests
A check of server-side resources used by ONTRApages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.31 ▲0.38 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.00 ▼1.22 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 49.35 ▲3.93 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 89.78 ▲3.87 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.03 ▲9.44 |
Add New /wp-admin/post-new.php?post_type=ontrapage | 3.42 | 41.48 |
All ONTRApages /wp-admin/edit.php?post_type=ontrapage | 3.42 | 40.71 |
Settings /wp-admin/edit.php?post_type=ontrapage&page=opsettings | 3.35 | 33.54 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
ONTRApages: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲130 | 13.74 ▼0.85 | 1.56 ▼0.07 | 45.85 ▲1.13 |
Dashboard /wp-admin | 2,256 ▲71 | 5.26 ▲0.32 | 99.85 ▼12.68 | 72.84 ▲27.32 |
Posts /wp-admin/edit.php | 2,150 ▲58 | 2.48 ▲0.43 | 41.91 ▲7.26 | 37.99 ▲5.58 |
Add New Post /wp-admin/post-new.php | 1,584 ▲60 | 23.22 ▼0.07 | 673.32 ▲11.08 | 37.54 ▼16.66 |
Media Library /wp-admin/upload.php | 1,444 ▲59 | 4.56 ▲0.28 | 101.90 ▼14.98 | 83.05 ▲30.23 |
Add New /wp-admin/post-new.php?post_type=ontrapage | 1,491 | 3.28 | 56.33 | 67.49 |
All ONTRApages /wp-admin/edit.php?post_type=ontrapage | 1,115 | 2.31 | 31.24 | 29.69 |
Settings /wp-admin/edit.php?post_type=ontrapage&page=opsettings | 972 | 1.93 | 24.54 | 33.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'query_vars' of non-object in wp-content/plugins/ontrapages/single-ontrapage.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ontrapages/single-ontrapage.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ontrapages/single-ontrapage.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
5 plugin tags: content delivery, landing pages, landing page builder, sales pages, coming soon pages
ontrapages/ontrapages.php 85% from 13 tests
The main PHP script in "ONTRApages" version 1.2.25 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,365 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 200 | 130 | 858 |
CSS | 1 | 98 | 2 | 408 |
JavaScript | 4 | 14 | 297 | 99 |
PHP code Passed 2 tests
This is a very shot review of 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.44 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 39 | 100.00% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 3 | 7.69% |
▷ Private methods | 4 | 10.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/js/oplogo.png | 4.80KB | 2.41KB | ▼ 49.87% |
_inc/images/opgicon.png | 48.80KB | 0.70KB | ▼ 98.57% |
_inc/images/ontraform_positions.png | 1.42KB | 0.36KB | ▼ 74.43% |
_inc/images/publish--embedded.png | 2.20KB | 0.74KB | ▼ 66.49% |
_inc/images/oplogo.png | 67.19KB | 5.26KB | ▼ 92.17% |