83% allprowebtools-leadboxes

Code Review | AllProWebTools Leadboxes

WordPress plugin AllProWebTools Leadboxes scored83%from 54 tests.

About plugin

  • Plugin page: allprowebtools-le...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.6.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2016
  • Latest release: Sep 22, 2023
  • Number of updates: 25
  • Update frequency: every 98.9 days
  • Top authors: allprowebtools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /1,616 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.10ms] Passed 4 tests

An overview of server-side resources used by AllProWebTools Leadboxes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.76 ▼4.19
Dashboard /wp-admin3.36 ▲0.0153.17 ▼5.83
Posts /wp-admin/edit.php3.41 ▲0.0548.20 ▲0.79
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.03 ▼14.61
Media Library /wp-admin/upload.php3.28 ▲0.0535.21 ▼3.77

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
APWT_THIS_VERSION
widget_apwtleadbox
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

AllProWebTools Leadboxes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.45 ▼1.117.55 ▲6.0039.66 ▼0.48
Dashboard /wp-admin2,198 ▲275.67 ▲0.1281.74 ▼5.2772.13 ▲27.48
Posts /wp-admin/edit.php2,112 ▲121.99 ▼0.0134.69 ▼1.2433.70 ▼3.52
Add New Post /wp-admin/post-new.php1,539 ▲1223.47 ▲0.36682.94 ▲19.2152.11 ▼0.87
Media Library /wp-admin/upload.php1,418 ▲214.26 ▲0.0892.20 ▼8.5277.47 ▲33.33

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • APWT_THIS_VERSION
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_apwtleadbox
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/allprowebtools-leadboxes/includes/apwt.php:113
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/allprowebtools-leadboxes/includes/apwt.php:113

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #2 is missing in allprowebtools-leadboxes/assets to your readme.txt
  • Screenshots: Screenshot #1 (Track actual sales dollars & activity that result from email marketing.) image not found
  • Plugin Name: Please specify the plugin name on the first line ( === allprowebtools-leadboxes === )
You can look at the official readme.txt

allprowebtools-leadboxes/allprowebtools.php 92% from 13 tests

Analyzing the main PHP file in "AllProWebTools Leadboxes" version 1.1.4
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("allprowebtools-leadboxes.php" instead of "allprowebtools.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin297 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35127249
JavaScript14048

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/wp-icon.png3.67KB1.12KB▼ 69.42%