83% my-lovely-horse

Code Review | My Lovely Horse

WordPress plugin My Lovely Horse scored 83% from 54 tests.

About plugin

  • Plugin page: my-lovely-horse
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Jun 25, 2016
  • Latest release: Aug 23, 2016
  • Number of updates: 15
  • Update frequency: every 4.0 days
  • Top authors: nickrtaylor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 801 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.11ms] Passed 4 tests

An overview of server-side resources used by My Lovely Horse
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.43 ▼1.60
Dashboard /wp-admin3.31 ▲0.0146.74 ▼2.12
Posts /wp-admin/edit.php3.36 ▲0.0146.31 ▼0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.51 ▼4.56
Media Library /wp-admin/upload.php3.23 ▲0.0132.98 ▲1.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for My Lovely Horse
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.57 ▼0.761.84 ▲0.0344.89 ▼15.58
Dashboard /wp-admin2,209 ▲185.85 ▲0.90100.94 ▼16.1242.23 ▼1.23
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0038.84 ▲1.4435.83 ▲3.19
Add New Post /wp-admin/post-new.php1,590 ▲4822.61 ▲4.17577.67 ▼60.6445.10 ▼9.51
Media Library /wp-admin/upload.php1,397 ▲94.20 ▼0.0298.44 ▼7.0644.00 ▼1.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× 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/my-lovely-horse/my_lovely_horse.php:38

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 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === my-lovely-horse === )
Please take inspiration from this readme.txt

my-lovely-horse/my_lovely_horse.php 85% from 13 tests

The main PHP file in "My Lovely Horse" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 195 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-lovely-horse.php" instead of "my_lovely_horse.php")

Code Analysis Passed 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 plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin