89% wp-love-it

Code Review | WP Love It

WordPress plugin WP Love It scored89%from 54 tests.

About plugin

  • Plugin page: wp-love-it
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2016
  • Latest release: Feb 7, 2016
  • Number of updates: 5
  • Update frequency: every 48.6 days
  • Top authors: newbiesup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.75ms] Passed 4 tests

A check of server-side resources used by WP Love It
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.06 ▼2.92
Dashboard /wp-admin3.33 ▲0.0347.95 ▼4.04
Posts /wp-admin/edit.php3.38 ▲0.0348.16 ▼4.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.78 ▼19.10
Media Library /wp-admin/upload.php3.26 ▲0.0336.48 ▼0.11

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Love It
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14213.57 ▼0.808.36 ▲6.7641.77 ▲2.49
Dashboard /wp-admin2,221 ▲184.83 ▼0.00109.21 ▼0.2737.79 ▼6.15
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0139.75 ▼6.0935.11 ▼0.71
Add New Post /wp-admin/post-new.php1,530 ▼123.35 ▲0.16637.55 ▼70.2553.13 ▼3.81
Media Library /wp-admin/upload.php1,397 ▼34.22 ▼0.0095.67 ▼17.7241.73 ▼8.09

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 does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-love-it === )
  • Screenshots: Screenshot #1 (WP Love It) image not found
Please take inspiration from this readme.txt

wp-love-it/wp-love-it.php Passed 13 tests

The principal PHP file in "WP Love It" v. 1.0.0 is loaded by WordPress automatically on each request
55 characters long description:
Automatically add a Love it button to your post content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin371 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22914155
PHP437112103
CSS10080
PO File13322
SVG10011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected