94% orbisius-warning-suppressor

Code Review | Orbisius Warning Suppressor

WordPress plugin Orbisius Warning Suppressor scored 94% from 54 tests.

About plugin

  • Plugin page: orbisius-warning-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 5.8.1
  • First release: Nov 1, 2017
  • Latest release: Nov 9, 2017
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 948 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Orbisius Warning Suppressor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.33 ▲16.45
Dashboard /wp-admin3.08 ▲0.0252.16 ▲5.80
Posts /wp-admin/edit.php3.13 ▲0.0243.92 ▼8.20
Add New Post /wp-admin/post-new.php5.43 ▲0.0088.97 ▼586.76
Media Library /wp-admin/upload.php3.02 ▲0.0231.94 ▲0.31
Orbisius Warning Suppressor /wp-admin/options-general.php?page=orbisius_warning_suppressor_options2.9930.40

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Orbisius Warning Suppressor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,687 ▲9116.12 ▲0.568.66 ▼1.0047.34 ▲0.72
Dashboard /wp-admin2,972 ▲415.83 ▼0.30134.62 ▼29.60121.07 ▲10.01
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0061.49 ▼7.4296.54 ▼2.64
Add New Post /wp-admin/post-new.php1,503 ▲318.51 ▼0.17352.64 ▼43.64113.38 ▲6.63
Media Library /wp-admin/upload.php1,812 ▲25.05 ▲0.03144.92 ▼16.74119.47 ▲6.53
Orbisius Warning Suppressor /wp-admin/options-general.php?page=orbisius_warning_suppressor_options1,1082.0557.0977.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-warning-suppressor/orbisius-warning-suppressor.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (WP-CLI output filled with warnings when the plugin is not active), #2 (WP-CLI output no warnings)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

orbisius-warning-suppressor/orbisius-warning-suppressor.php Passed 13 tests

The main PHP script in "Orbisius Warning Suppressor" version 1.0.2 is automatically included on every request by WordPress
67 characters long description:
Suppresses 'Declaration ... should be compatible' warnings in php 7

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13558112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot2.png49.54KB17.05KB▼ 65.59%
screenshot1.png316.59KB116.59KB▼ 63.17%