84% wpbatch-icons-shortcode

Code Review | WPBatch icons Shortcode

WordPress plugin WPBatch icons Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: wpbatch-icons-sho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Nov 10, 2014
  • Latest release: Nov 10, 2014
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: sujon3g (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /1,065 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.00MB] [CPU: ▼4.47ms] Passed 4 tests

Server-side resources used by WPBatch icons Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.81 ▲0.99
Dashboard /wp-admin3.31 ▲0.0051.43 ▼1.73
Posts /wp-admin/edit.php3.36 ▲0.0044.70 ▼8.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.59 ▼8.31
Media Library /wp-admin/upload.php3.23 ▲0.0040.67 ▲3.70

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPBatch icons Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5613.22 ▼1.072.22 ▲0.2546.98 ▲6.35
Dashboard /wp-admin2,224 ▲215.84 ▲0.03106.33 ▼7.2938.92 ▼1.67
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0338.80 ▼2.6936.61 ▼1.47
Add New Post /wp-admin/post-new.php1,540 ▼523.37 ▲0.08624.94 ▼71.0547.53 ▼14.23
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.05100.39 ▼16.2443.34 ▼5.01

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbatch-icons-shortcode/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: stylish icon, font-awesome, wpbatch font, font icon, wpbatch...

wpbatch-icons-shortcode/index.php 85% from 13 tests

The main PHP script in "WPBatch icons Shortcode" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpbatch-icons-shortcode.php" instead of "index.php")

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 plugin541 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
SVG100520
PHP1101020
CSS1031

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions2
▷ Named functions2100.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