84% infobox

Code Review | Infobox

WordPress plugin Infobox scored84%from 54 tests.

About plugin

  • Plugin page: infobox
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 24, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 16
  • Update frequency: every 61.2 days
  • Top authors: wpdevteam (81.25%)Asif2BD (25%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /22,412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.07ms] Passed 4 tests

A check of server-side resources used by Infobox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1841.08 ▼1.89
Dashboard /wp-admin3.46 ▲0.1549.02 ▼3.48
Posts /wp-admin/edit.php3.57 ▲0.2150.18 ▲2.67
Add New Post /wp-admin/post-new.php6.06 ▲0.1794.05 ▼13.59
Media Library /wp-admin/upload.php3.38 ▲0.1544.50 ▲8.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Infobox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.341.63 ▼0.1439.69 ▼2.52
Dashboard /wp-admin2,198 ▲215.58 ▲0.0485.49 ▼2.7940.82 ▼0.33
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1339.79 ▲1.5036.46 ▼1.39
Add New Post /wp-admin/post-new.php1,668 ▲13724.17 ▲1.14661.85 ▼16.7837.19 ▼22.29
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0197.33 ▼3.8045.69 ▲4.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/infobox/infobox.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: info box, infobox, gutenberg, blocks, icon box...

infobox/infobox.php Passed 13 tests

The entry point to "Infobox" version 1.2.4 is a PHP file that has certain tags in its header comment area
74 characters long description:
Highlight Your Key Features & Hold Audience Attention with Info Box Block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin18,133 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,231
CSS71,504555,076
PHP9106161718
JavaScript514792
JSON20016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity32.20
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin