Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.77ms] Passed 4 tests
Server-side resources used by CC Child Pages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.46 ▲0.47 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.42 ▼8.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.61 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.76 ▼18.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.88 ▼1.21 |
CC Child Pages /wp-admin/options-general.php?page=cc-child-pages | 3.22 | 30.94 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_ccchildpages_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
cc_child_pages |
theysaidso_admin_options |
Browser metrics Passed 4 tests
CC Child Pages: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.31 ▼0.07 | 2.04 ▲0.10 | 42.60 ▼1.95 |
Dashboard /wp-admin | 2,202 ▲28 | 5.52 ▼0.15 | 89.41 ▲1.64 | 39.54 ▼4.56 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.06 ▲0.05 | 35.61 ▼1.48 | 36.78 ▲2.38 |
Add New Post /wp-admin/post-new.php | 1,557 ▲26 | 22.71 ▼0.23 | 631.45 ▼47.09 | 60.18 ▼0.21 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.11 | 99.32 ▼14.52 | 44.67 ▼3.66 |
CC Child Pages /wp-admin/options-general.php?page=cc-child-pages | 800 | 2.04 | 25.25 | 28.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- can_compress_scripts
- cc_child_pages
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_ccchildpages_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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cc-child-pages/index.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-child-pages/includes/ccchildpages_widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (21 tag instead of maximum 10)
cc-child-pages/index.php 85% from 13 tests
"CC Child Pages" version 1.45's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "5.4")
- Main file name: The principal plugin file should be the same as the plugin slug ("cc-child-pages.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,794 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 288 | 187 | 1,075 |
CSS | 3 | 62 | 92 | 455 |
PO File | 1 | 47 | 51 | 138 |
JavaScript | 1 | 7 | 25 | 126 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 106.50 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 7.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 27 | 87.10% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/childpages.png | 0.44KB | 0.26KB | ▼ 39.46% |