10% pg-fixed-boxes-wp-popup-sidebars

Code Review | PG FIXED BOX

WordPress plugin PG FIXED BOX scored10%from 54 tests.

About plugin

  • Plugin page: pg-fixed-boxes-wp...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 5, 2014
  • Latest release: May 30, 2015
  • Number of updates: 46
  • Update frequency: every 6.6 days
  • Top authors: f.n174 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,962 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/pg-fixed-boxes-wp-popup-sidebars/inc/class_box.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; pgboxdata has a deprecated constructor

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

Analyzing server-side resources used by PG FIXED BOX
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.25 ▲7.84
Dashboard /wp-admin3.33 ▲0.0246.36 ▼4.90
Posts /wp-admin/edit.php3.38 ▲0.0248.68 ▼3.68
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.66 ▼23.71
Media Library /wp-admin/upload.php3.25 ▲0.0235.92 ▲0.65
Fixed Boxes /wp-admin/options-general.php?page=pg-main3.4436.33
Add New Box /wp-admin/options-general.php?page=pg-add3.3734.61

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
fixed_boxes_data
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PG FIXED BOX
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.98 ▼0.609.03 ▲7.1842.96 ▲0.71
Dashboard /wp-admin2,228 ▲515.97 ▲0.3093.16 ▼0.6437.98 ▼6.14
Posts /wp-admin/edit.php2,135 ▲382.62 ▲0.6341.45 ▲1.3234.81 ▼4.13
Add New Post /wp-admin/post-new.php1,552 ▲2623.11 ▲0.32721.20 ▲48.7936.40 ▼15.96
Media Library /wp-admin/upload.php1,430 ▲304.48 ▲0.2899.64 ▼5.1842.18 ▼2.50
Fixed Boxes /wp-admin/options-general.php?page=pg-main1,7292.7755.1634.21
Add New Box /wp-admin/options-general.php?page=pg-add1,7052.7455.2131.89

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • fixed_boxes_data
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
Even though everything seems fine, this is not 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/pg-fixed-boxes-wp-popup-sidebars/inc/pg-template.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
  • Donate link: Invalid URI ("fixedboxes.esy.es/wp")
The official readme.txt might help

pg-fixed-boxes-wp-popup-sidebars/pg-fixed-box.php 92% from 13 tests

The primary PHP file in "PG FIXED BOX" version 2.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pg-fixed-boxes-wp-popup-sidebars.php" instead of "pg-fixed-box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,032 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP5128531,097
PO File2162175389
JavaScript51779335
CSS6293211

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/dark/img/closebtn.png4.29KB0.77KB▼ 82.05%
skins/light/img/closebtn-hover.png2.88KB0.17KB▼ 94.21%
skins/light/img/closebtn.png2.88KB0.17KB▼ 94.21%
skins/flat/img/closebtn-hover.png2.81KB0.10KB▼ 96.28%
skins/flat/img/closebtn.png2.81KB0.10KB▼ 96.28%