89% precise-plugin-updater

Code Review | Precise Plugin Updater

WordPress plugin Precise Plugin Updater scored 89% from 53 tests.

About plugin

  • Plugin page: precise-plugin-up...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.9.1
  • WordPress version: 5.8.1
  • First release: Oct 16, 2017
  • Latest release: Dec 2, 2017
  • Number of updates: 11
  • Update frequency: every 4.3 days
  • Top authors: cardinal90 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼260.19ms] Passed 4 tests

This is a short check of server-side resources used by Precise Plugin Updater
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1841.54 ▲21.33
Dashboard /wp-admin3.13 ▲0.0845.32 ▲12.89
Posts /wp-admin/edit.php3.24 ▲0.1443.49 ▲0.67
Add New Post /wp-admin/post-new.php5.49 ▲0.0795.32 ▼1,045.74
Media Library /wp-admin/upload.php3.07 ▲0.0733.48 ▼8.56
Plugin updater /wp-admin/options-general.php?page=ppu_options3.0429.60

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options
ppu_default_policy

Browser metrics Passed 4 tests

An overview of browser requirements for Precise Plugin Updater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7216.13 ▲0.5510.19 ▲2.6245.76 ▲4.26
Dashboard /wp-admin2,935 ▲825.97 ▲0.23134.60 ▲2.87103.24 ▼0.04
Posts /wp-admin/edit.php2,711 ▲52.69 ▲0.0268.69 ▲0.7884.49 ▼11.06
Add New Post /wp-admin/post-new.php1,854 ▲20117.48 ▼1.18378.69 ▲4.48108.35 ▼1.67
Media Library /wp-admin/upload.php1,780 ▲85.00 ▼0.03148.04 ▼2.61110.06 ▼2.52
Plugin updater /wp-admin/options-general.php?page=ppu_options1,0732.1554.3763.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • ppu_default_policy

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)
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: plugins, automatic updates, versions, updates

precise-plugin-updater/precise-plugin-updater.php 85% from 13 tests

The main PHP script in "Precise Plugin Updater" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 333 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin513 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP87253301
PO File1242892
JavaScript13055
XML1183732
JSON10021
CSS11012

PHP code Passed 2 tests

An short overview of 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.27
Average class complexity4.57
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin