90% wp-like-system

Code Review | WP Like System

WordPress plugin WP Like System scored90%from 54 tests.

About plugin

  • Plugin page: wp-like-system
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 7, 2014
  • Latest release: Mar 7, 2018
  • Number of updates: 7
  • Update frequency: every 212.7 days
  • Top authors: HenriqueSilverio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,824 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WP Like System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.52 ▼3.87
Dashboard /wp-admin3.33 ▲0.0345.25 ▲0.62
Posts /wp-admin/edit.php3.38 ▲0.0342.43 ▼3.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.82 ▼24.95
Media Library /wp-admin/upload.php3.25 ▲0.0334.47 ▼0.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Like System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲3613.20 ▼1.412.03 ▲0.2042.84 ▲1.61
Dashboard /wp-admin2,209 ▲215.90 ▼0.02108.36 ▼0.9738.36 ▼9.85
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0634.67 ▼13.0833.74 ▼3.75
Add New Post /wp-admin/post-new.php1,524 ▼1823.43 ▲5.07639.92 ▲29.1755.92 ▲1.84
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0192.52 ▼9.0740.54 ▼2.47

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Front-End display 01.), #2 (Front-End display 02.), #3 (Front-End display 03.)
The official readme.txt might help

wp-like-system/wp-like-system.php Passed 13 tests

"WP Like System" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Rating system for posts, based on Facebook likes. Its not dependent of Facebook.

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
There were no executable files found in this plugin240 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45150156
PO File2182070
SVG10012
CSS1001
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png34.49KB14.78KB▼ 57.14%
screenshot-1.png33.52KB14.34KB▼ 57.20%
screenshot-2.png33.82KB14.42KB▼ 57.37%