Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.42MB] [CPU: ▲4.48ms] Passed 4 tests
This is a short check of server-side resources used by MainWP Child Reports
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.59 ▲2.12 | 50.13 ▲5.92 |
Dashboard /wp-admin | 5.88 ▲2.53 | 64.30 ▼4.90 |
Posts /wp-admin/edit.php | 5.93 ▲2.57 | 61.33 ▲10.86 |
Add New Post /wp-admin/post-new.php | 8.42 ▲2.53 | 99.58 ▲6.02 |
Media Library /wp-admin/upload.php | 5.74 ▲2.51 | 59.32 ▲23.63 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 208 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mainwp_stream |
wp_mainwp_stream_meta |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for MainWP Child Reports
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 13.51 ▼0.75 | 1.68 ▲0.01 | 39.80 ▼3.09 |
Dashboard /wp-admin | 2,210 ▲29 | 5.77 ▲0.06 | 99.25 ▼3.70 | 42.35 ▲5.83 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.17 ▲0.22 | 38.79 ▲1.55 | 33.20 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 18.30 ▼4.74 | 596.49 ▼64.05 | 66.70 ▼1.11 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.27 ▲0.06 | 103.80 ▲7.75 | 42.32 ▲1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_mainwp_stream
- wp_mainwp_stream_meta
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Alert_Type' not found in wp-content/plugins/mainwp-child-reports/alerts/class-alert-type-email.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_MainWP_Stream\\wp_mainwp_stream_get_instance() in wp-content/plugins/mainwp-child-reports/classes/class-date-interval.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mainwp-child-reports/includes/feeds/json.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Connector' not found in wp-content/plugins/mainwp-child-reports/connectors/class-connector-installer.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Exporter' not found in wp-content/plugins/mainwp-child-reports/exporters/class-exporter-csv.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Connector' not found in wp-content/plugins/mainwp-child-reports/connectors/class-connector-comments.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Alert_Type' not found in wp-content/plugins/mainwp-child-reports/alerts/class-alert-type-highlight.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Connector' not found in wp-content/plugins/mainwp-child-reports/connectors/class-connector-media.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Connector' not found in wp-content/plugins/mainwp-child-reports/connectors/class-connector-wordpress-seo.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_MainWP_Stream\\Connector' not found in wp-content/plugins/mainwp-child-reports/connectors/class-connector-blogs.php:12
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (The MainWP Child Reports Screen), #2 (The MainWP Child Reports Settings Screen)
mainwp-child-reports/mainwp-child-reports.php 92% from 13 tests
The principal PHP file in "MainWP Child Reports" v. 2.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected30,095 lines of code in 198 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 3,156 | 8,495 | 14,467 |
JavaScript | 121 | 2,829 | 935 | 12,165 |
PO File | 1 | 833 | 987 | 2,294 |
CSS | 5 | 196 | 46 | 1,138 |
Markdown | 1 | 7 | 0 | 20 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A short 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.43 |
Average class complexity | 31.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 845 | |
▷ Static methods | 29 | 3.43% |
▷ Public methods | 812 | 96.09% |
▷ Protected methods | 9 | 1.07% |
▷ Private methods | 24 | 2.84% |
Functions | 43 | |
▷ Named functions | 12 | 27.91% |
▷ Anonymous functions | 31 | 72.09% |
Constants | 32 | |
▷ Global constants | 2 | 6.25% |
▷ Class constants | 30 | 93.75% |
▷ Public constants | 30 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ui/stream-icons/datepicker-icons-gray.png | 8.33KB | 4.17KB | ▼ 49.88% |
ui/stream-icons/menuicon-sprite-2x.png | 2.06KB | 0.88KB | ▼ 57.38% |
ui/stream-icons/menuicon-sprite.png | 1.47KB | 0.59KB | ▼ 60.13% |
ui/stream-icons/datepicker-icons.png | 6.15KB | 4.17KB | ▼ 32.13% |
ui/stream-icons/wp-cli.png | 2.42KB | 1.77KB | ▼ 26.80% |