89% wp-bannerized-categories

Code Review | WP Bannerized Categories

WordPress plugin WP Bannerized Categories scored89%from 54 tests.

About plugin

  • Plugin page: wp-bannerized-cat...
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 30, 2018
  • Latest release: Mar 30, 2018
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: apoorvasharma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by WP Bannerized Categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.81 ▼5.38
Dashboard /wp-admin3.34 ▼0.0149.95 ▼13.26
Posts /wp-admin/edit.php3.39 ▲0.0346.51 ▼1.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.98 ▼11.05
Media Library /wp-admin/upload.php3.26 ▲0.0337.18 ▼3.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WP Bannerized Categories: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.38 ▼0.211.73 ▼0.3542.88 ▼5.25
Dashboard /wp-admin2,195 ▲185.67 ▲0.0587.06 ▼11.0440.85 ▼2.12
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0034.16 ▼2.8035.91 ▼3.30
Add New Post /wp-admin/post-new.php1,545 ▲1423.31 ▲0.00646.82 ▼43.4652.59 ▼11.75
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0298.49 ▼15.7941.37 ▼7.56

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).) image missing
The official readme.txt is a good inspiration

wp-bannerized-categories/wp-bannerized-categories.php 92% from 13 tests

"WP Bannerized Categories" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected236 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14746187
JavaScript191130
CSS13019

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.82
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin