84% apex-digital-toolbox

Code Review | Apex Digital Toolbox

WordPress plugin Apex Digital Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: apex-digital-toolbox
  • Plugin version: 1.4.10
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Nov 13, 2023
  • Number of updates: 39
  • Update frequency: every 65.3 days
  • Top authors: nwells (79.49%)apexdigital (23.08%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,813 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼7.36ms] Passed 4 tests

A check of server-side resources used by Apex Digital Toolbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1636.29 ▼6.19
Dashboard /wp-admin3.54 ▲0.1947.85 ▼17.33
Posts /wp-admin/edit.php3.59 ▲0.2350.04 ▲3.57
Add New Post /wp-admin/post-new.php6.06 ▲0.1789.05 ▼9.47
Media Library /wp-admin/upload.php3.40 ▲0.1735.60 ▲4.29
Hooks /wp-admin/admin.php?page=apex_toolbox_hooks3.7037.61
Settings /wp-admin/admin.php?page=apex_toolbox_settings3.3732.80

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Apex Digital Toolbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7014.05 ▼0.091.75 ▲0.0539.87 ▼6.80
Dashboard /wp-admin2,222 ▲425.62 ▼0.0287.32 ▼6.4441.12 ▲2.48
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.1838.77 ▼4.7236.30 ▼1.50
Add New Post /wp-admin/post-new.php1,548 ▲2223.27 ▲0.07673.18 ▼91.9155.31 ▲0.43
Media Library /wp-admin/upload.php1,430 ▲274.20 ▼0.0599.57 ▼0.1045.98 ▲3.82
Hooks /wp-admin/admin.php?page=apex_toolbox_hooks1,1301.9825.1635.22
Settings /wp-admin/admin.php?page=apex_toolbox_settings8032.0024.8425.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/apex-digital-toolbox/includes/class-wc-apex-custom-payment-gateway.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/apex-digital-toolbox/includes/elementor/WidgetListCategories.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: setup, staging, production, administration

apex-digital-toolbox/apex-digital-toolbox.php Passed 13 tests

Analyzing the main PHP file in "Apex Digital Toolbox" version 1.4.10
67 characters long description:
Adds additional functionality that to make it easier to setup sites

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 detected3,105 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP193939543,100
JavaScript1004
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.79
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods189
▷ Static methods63.17%
▷ Public methods15280.42%
▷ Protected methods21.06%
▷ Private methods3518.52%
Functions27
▷ Named functions13.70%
▷ Anonymous functions2696.30%
Constants11
▷ Global constants436.36%
▷ Class constants763.64%
▷ 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
No PNG images were found in this plugin