Benchmarks
Plugin footprint 47% 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: ▲5.84MB] [CPU: ▲26.84ms] 75% from 4 tests
A check of server-side resources used by Child Support Calculator
Please take the time to fix the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.84MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.38 ▲5.92 | 70.99 ▲27.94 |
Dashboard /wp-admin | 9.40 ▲6.06 | 82.45 ▲19.26 |
Posts /wp-admin/edit.php | 9.40 ▲6.05 | 91.55 ▲37.12 |
Add New Post /wp-admin/post-new.php | 11.22 ▲5.33 | 128.24 ▲23.35 |
Media Library /wp-admin/upload.php | 9.40 ▲6.17 | 76.88 ▲36.81 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 9.40 | 66.59 |
Server storage [IO: ▲14.11MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 487 new files
Database: 4 new tables, 19 new options
New tables |
---|
wp_wpcsc_incomes |
wp_wpcsc_leads |
wp_wpcsc_incomes_nc |
wp_wpcsc_calculations |
New WordPress options |
---|
wpcsc__admin_email |
widget_theysaidso_widget |
can_compress_scripts |
fs_gdpr |
theysaidso_admin_options |
wpcsc__pdf |
wpcsc_install_date |
wpcsc_db_version |
widget_recent-comments |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Child Support Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲174 | 13.45 ▼1.11 | 9.82 ▲8.26 | 28.70 ▼14.69 |
Dashboard /wp-admin | 2,224 ▲54 | 5.63 ▲0.02 | 90.54 ▼10.90 | 42.16 ▼5.33 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 1.98 ▼0.00 | 39.78 ▲2.92 | 37.35 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 24.26 ▲1.26 | 637.30 ▼7.40 | 70.36 ▲12.03 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.22 ▼0.01 | 97.14 ▼10.87 | 41.62 ▼6.84 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,087 | 1.66 | 24.48 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/child-support-calculator/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 4 tables in the database
- wp_wpcsc_calculations
- wp_wpcsc_leads
- wp_wpcsc_incomes
- wp_wpcsc_incomes_nc
- This plugin does not fully uninstall, leaving 19 options in the database
- wpcsc__admin_email
- wpcsc_delete_data
- fs_active_plugins
- wpcsc_db_version
- fs_gdpr
- wpcsc__form-nc
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- 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
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
- 136× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/child-support-calculator/includes/dompdf/src/FrameDecorator/NullFrameDecorator.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/child-support-calculator/includes/dompdf/src/FrameDecorator/TableRow.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/child-support-calculator/includes/dompdf/src/FrameReflower/Image.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/child-support-calculator/includes/dompdf/lib/php-font-lib/src/FontLib/Table/Type/hmtx.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/child-support-calculator/includes/dompdf/lib/php-svg-lib/src/Svg/Tag/Ellipse.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/child-support-calculator/includes/dompdf/lib/php-font-lib/src/FontLib/Table/Type/post.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-support-calculator/includes/functions-database.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/child-support-calculator/includes/dompdf/lib/php-font-lib/src/FontLib/Table/Type/kern.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/child-support-calculator/includes/dompdf/src/Positioner/Block.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/child-support-calculator/includes/dompdf/lib/php-css-parser/src/Comment/Comment.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #6, #7 in child-support-calculator/assets to your readme.txt
child-support-calculator/child-support-calculator.php 92% from 13 tests
Analyzing the main PHP file in "Child Support Calculator" version 2.0.1.2
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 195 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin84,257 lines of code in 373 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 324 | 17,373 | 35,350 | 80,435 |
JavaScript | 13 | 231 | 167 | 1,590 |
Markdown | 7 | 262 | 0 | 969 |
CSS | 20 | 173 | 76 | 910 |
JSON | 5 | 0 | 0 | 207 |
XML | 1 | 0 | 2 | 86 |
YAML | 1 | 9 | 0 | 35 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,089)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 651)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 48.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 651.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 5 | |
Traits | 6 | |
Classes | 231 | |
▷ Abstract classes | 14 | 6.06% |
▷ Concrete classes | 217 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 3,381 | |
▷ Static methods | 333 | 9.85% |
▷ Public methods | 2,679 | 79.24% |
▷ Protected methods | 262 | 7.75% |
▷ Private methods | 440 | 13.01% |
Functions | 200 | |
▷ Named functions | 179 | 89.50% |
▷ Anonymous functions | 21 | 10.50% |
Constants | 365 | |
▷ Global constants | 104 | 28.49% |
▷ Class constants | 261 | 71.51% |
▷ Public constants | 261 | 100.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.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/img/logo.png | 27.15KB | 7.79KB | ▼ 71.30% |
includes/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/img/icon.png | 40.04KB | 14.05KB | ▼ 64.92% |