90% plugin-elimination

Code Review | Plugin Elimination

WordPress plugin Plugin Elimination scored 90% from 54 tests.

About plugin

  • Plugin page: plugin-elimination
  • Plugin version: .9...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Mar 20, 2019
  • Latest release: Mar 20, 2019
  • Number of updates: 2
  • Update frequency: every 15.0 days
  • Top authors: ghostinajar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.24ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Elimination
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.44 ▼2.11
Dashboard /wp-admin3.32 ▲0.0148.08 ▲0.96
Posts /wp-admin/edit.php3.37 ▲0.0148.09 ▲3.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.43 ▲3.58
Media Library /wp-admin/upload.php3.24 ▲0.0135.01 ▼3.30

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Elimination
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲1813.14 ▼1.644.88 ▲2.9842.41 ▼4.78
Dashboard /wp-admin2,210 ▲105.78 ▼0.0996.30 ▼19.3038.80 ▼5.86
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0436.01 ▲1.1733.10 ▼1.44
Add New Post /wp-admin/post-new.php1,532 ▼123.02 ▼0.13671.57 ▲24.2951.20 ▲0.96
Media Library /wp-admin/upload.php1,389 ▲74.21 ▼0.0397.71 ▼2.1843.51 ▼4.32

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: plugin, testing, debug

plugin-elimination/plugin-elimination.php 92% from 13 tests

Analyzing the main PHP file in "Plugin Elimination" version .9...
You should first fix the following items:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of ".9...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin205 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP674293133
CSS11437
JavaScript142735

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin