84% wp-post-likes

Code Review | WP Post Likes

WordPress plugin WP Post Likes scored 84% from 54 tests.

About plugin

  • Plugin page: wp-post-likes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Apr 3, 2017
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: thanhlt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 740 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.59ms] Passed 4 tests

A check of server-side resources used by WP Post Likes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.47 ▼3.00
Dashboard /wp-admin3.36 ▲0.0647.94 ▼2.52
Posts /wp-admin/edit.php3.41 ▲0.0653.10 ▲5.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.99 ▼10.86
Media Library /wp-admin/upload.php3.29 ▲0.0636.93 ▲2.01

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Likes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.66 ▼0.765.22 ▲3.5638.03 ▼8.95
Dashboard /wp-admin2,209 ▲215.86 ▲1.0299.09 ▼14.0237.94 ▼5.09
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1735.63 ▼3.6234.23 ▼2.75
Add New Post /wp-admin/post-new.php1,535 ▲1623.30 ▲0.23581.39 ▼39.4856.70 ▲8.40
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.2499.43 ▲1.4440.46 ▼11.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-post-likes/wp-post-likes.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: posts, likes, post, shortcodes, page

wp-post-likes/wp-post-likes.php Passed 13 tests

The main PHP file in "WP Post Likes" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
A simple and efficient post like system for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin452 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11480297
CSS155108
JavaScript11047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin