10% plugincheck

Code Review | Plugin Check

WordPress plugin Plugin Check scored10%from 54 tests.

About plugin

  • Plugin page: plugincheck
  • Plugin version: 3.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Jul 31, 2017
  • Number of updates: 51
  • Update frequency: every 13.8 days
  • Top authors: manojtd (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active /11,799 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/plugincheck/DbHelper.php+228
    Function get_magic_quotes_gpc() is deprecated

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.12ms] Passed 4 tests

A check of server-side resources used by Plugin Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.54 ▲2.11
Dashboard /wp-admin3.32 ▲0.0244.72 ▼1.28
Posts /wp-admin/edit.php3.44 ▲0.0844.99 ▼2.84
Add New Post /wp-admin/post-new.php5.90 ▲0.02104.75 ▲14.16
Media Library /wp-admin/upload.php3.25 ▲0.0229.05 ▼6.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 107 new files
Database: 2 new tables, 7 new options
New tables
wp_plg_administrator
wp_plg_options_meta
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
plugincheck
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Check
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.28 ▼1.164.49 ▲2.6742.28 ▼2.72
Dashboard /wp-admin2,213 ▲255.83 ▲0.9498.68 ▼7.7138.94 ▼3.45
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0137.85 ▲0.8736.28 ▼0.42
Add New Post /wp-admin/post-new.php1,536 ▼1123.14 ▲4.94617.41 ▼38.9354.24 ▼4.01
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0595.63 ▼3.2440.30 ▼1.98
Plugin Check Lite /wp-admin/plugin-check.php260.440.0912.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_plg_options_meta
    • wp_plg_administrator
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 23× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/plugincheck/admin/compile-app.php
    • > /wp-content/plugins/plugincheck/admin/profile.php
    • > /wp-content/plugins/plugincheck/admin/ajax/options.php
    • > /wp-content/plugins/plugincheck/admin/ajax/success.php
    • > /wp-content/plugins/plugincheck/admin/compile-plugin.php
    • > /wp-content/plugins/plugincheck/admin/ajax/update.php
    • > /wp-content/plugins/plugincheck/admin/promo.php
    • > /wp-content/plugins/plugincheck/admin/reinstall.php
    • > /wp-content/plugins/plugincheck/admin/dbSetup.php
    • > /wp-content/plugins/plugincheck/admin/compile-automated.php
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function menuShown() in wp-content/plugins/plugincheck/admin/intro.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugincheck/EzPlugin.php:386
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugincheck/EzPlugin.php:386
    • > PHP Fatal error
      Uncaught Error: Class 'EZ' not found in wp-content/plugins/plugincheck/admin/tour.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'EZ' not found in wp-content/plugins/plugincheck/admin/support.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/plugincheck/admin/options-compile.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/plugincheck/admin/options-default.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function renderFooter() in wp-content/plugins/plugincheck/admin/footer.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/plugin-check.php
    • > Network (severe)
    wp-admin/plugin-check.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (Plugin Check admin page, with quick start, help and support info.), #2 (Plugin Check - how to launch it.), #3 (Plugin Check output.), #4 (App Check launch page.), #5 (Automated Checks launch page.), #6 (Advanced Options in the Pro version showing a dark theme.)
You can take inspiration from this readme.txt

plugincheck/plugin-check.php 92% from 13 tests

This is the main PHP file of "Plugin Check" version 3.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("plugincheck.php" instead of "plugin-check.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,863 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
PHP496916046,489
CSS8208961,421
JavaScript1199951,189
SVG200749
SQL12015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity40.44
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes00.00%
Methods264
▷ Static methods8732.95%
▷ Public methods24693.18%
▷ Protected methods124.55%
▷ Private methods62.27%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.40MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png71.34KB75.16KB0.00%
admin/img/uploadify-cancel.png2.89KB0.21KB▼ 92.67%
admin/img/sort_asc.png1.09KB0.25KB▼ 77.46%
admin/img/star-half.png0.65KB0.65KB0.00%
admin/img/spritemap.png9.97KB9.37KB▼ 5.99%