68% child-height-predictor

Code Review | Child Height Predictor by Ostheimer

WordPress plugin Child Height Predictor by Ostheimer scored68%from 54 tests.

About plugin

  • Plugin page: child-height-pred...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-5.1
  • WordPress version: 6.3.1
  • First release: May 9, 2012
  • Latest release: May 19, 2019
  • Number of updates: 42
  • Update frequency: every 61.1 days
  • Top authors: helpstring (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,926 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼33.82ms] Passed 4 tests

A check of server-side resources used by Child Height Predictor by Ostheimer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.37 ▲4.54
Dashboard /wp-admin3.02 ▼0.2927.47 ▼23.41
Posts /wp-admin/edit.php3.02 ▼0.3423.87 ▼28.76
Add New Post /wp-admin/post-new.php3.02 ▼2.8724.49 ▼73.97
Media Library /wp-admin/upload.php3.02 ▼0.2226.21 ▼9.14
Child Height Configuration /wp-admin/plugins.php?page=child-height-predictor/childheight.php3.1222.75

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Child Height Predictor by Ostheimer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.79 ▼0.167.92 ▲6.1445.92 ▼0.22
Dashboard /wp-admin2,201 ▲245.59 ▼0.0583.48 ▼7.4340.30 ▼4.35
Posts /wp-admin/edit.php2,109 ▲122.00 ▲0.0336.33 ▼1.6334.54 ▼4.62
Add New Post /wp-admin/post-new.php1,531 ▲523.66 ▲0.40689.32 ▲33.7753.42 ▲1.29
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0197.35 ▼20.0644.71 ▼3.29
Child Height Configuration /wp-admin/plugins.php?page=child-height-predictor/childheight.php8022.0124.5727.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=child-height-predictor/childheight.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/child-height-predictor/childheight.php:159
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/child-height-predictor/tpl/options-layout.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/child-height-predictor/tpl/script.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/child-height-predictor/tpl/script.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/child-height-predictor/tpl/widget-control.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/child-height-predictor/tpl/script.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Child Height Predictor admin settings.), #2 (Child Height Predictor widget settings.), #3 (Child Height Predictor front end.)
The official readme.txt might help

child-height-predictor/childheight.php 92% from 13 tests

The principal PHP file in "Child Height Predictor by Ostheimer" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("child-height-predictor.php" instead of "childheight.php")

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
Good job! No executable or dangerous file extensions detected580 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP66320363
PO File248136128
CSS1281589

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png8.82KB4.82KB▼ 45.30%
images/schritt-eins.png2.65KB2.03KB▼ 23.36%
images/schritt-zwei.png2.93KB2.12KB▼ 27.70%
screenshot-1.png20.83KB10.56KB▼ 49.30%
images/schritt-drei.png3.04KB2.15KB▼ 29.18%