84% no-premium

Code Review | No Premium

WordPress plugin No Premium scored84%from 54 tests.

About plugin

  • Plugin page: no-premium
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: Aug 30, 2018
  • Latest release: Mar 10, 2020
  • Number of updates: 13
  • Update frequency: every 42.9 days
  • Top authors: fbmkrs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,092 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.37ms] Passed 4 tests

A check of server-side resources used by No Premium
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.18 ▼1.60
Dashboard /wp-admin3.31 ▲0.0145.35 ▼4.40
Posts /wp-admin/edit.php3.36 ▲0.0047.13 ▼1.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.00 ▼13.53
Media Library /wp-admin/upload.php3.24 ▲0.0036.52 ▲2.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

No Premium: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.57 ▼1.104.37 ▲2.5942.07 ▼8.12
Dashboard /wp-admin2,205 ▲175.83 ▲0.9595.72 ▼16.4736.55 ▼6.35
Posts /wp-admin/edit.php2,091 ▲22.00 ▼0.0439.33 ▲1.3935.29 ▲0.21
Add New Post /wp-admin/post-new.php1,516 ▼2123.02 ▲4.83616.33 ▼34.8850.69 ▼22.11
Media Library /wp-admin/upload.php1,384 ▼44.18 ▼0.0395.92 ▼22.5241.81 ▼6.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-premium/no-premium.php:15

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)
No browser issues were found

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: remove premium banner, remove premium, no premium, remove premium badges, backend

no-premium/no-premium.php Passed 13 tests

The primary PHP file in "No Premium" version 0.0.3 is used by WordPress to initiate all plugin functionality
40 characters long description:
Remove "Get Premium" buttons and prompts

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
Good job! No executable or dangerous file extensions detected72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS141165
PHP1477

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin