84% aztheme-toolkit

Code Review | AZ-Theme Toolkit

WordPress plugin AZ-Theme Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: aztheme-toolkit
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Nov 5, 2021
  • Number of updates: 19
  • Update frequency: every 2.1 days
  • Top authors: dannywpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.96ms] Passed 4 tests

An overview of server-side resources used by AZ-Theme Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.46 ▲0.07
Dashboard /wp-admin3.39 ▲0.0551.65 ▼9.90
Posts /wp-admin/edit.php3.51 ▲0.1655.53 ▲0.74
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.61 ▼18.47
Media Library /wp-admin/upload.php3.30 ▲0.0737.53 ▲0.45
Add New /wp-admin/post-new.php?post_type=portfolio3.4250.60
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio3.3240.91
All Items /wp-admin/edit.php?post_type=portfolio3.3743.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 10 new options
New WordPress options
widget_aztheme-categories-images
db_upgraded
widget_recent-comments
widget_aztheme-about-me
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_aztheme-social-media-links
widget_theysaidso_widget
widget_aztheme-latest-posts-widget

Browser metrics Passed 4 tests

AZ-Theme Toolkit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲21814.43 ▲0.151.82 ▲0.2743.42 ▲0.47
Dashboard /wp-admin2,365 ▲1856.16 ▲0.52110.67 ▲20.7538.81 ▼4.39
Posts /wp-admin/edit.php2,293 ▲1933.30 ▲1.3054.79 ▲14.6535.11 ▼8.28
Add New Post /wp-admin/post-new.php1,554 ▲2823.68 ▲0.12669.53 ▼11.0539.30 ▼17.34
Media Library /wp-admin/upload.php1,436 ▲364.13 ▼0.0982.33 ▼31.1845.28 ▼3.66
Add New /wp-admin/post-new.php?post_type=portfolio2,2967.59180.7669.36
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio1,4703.1543.6133.23
All Items /wp-admin/edit.php?post_type=portfolio1,2713.3944.3728.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • widget_aztheme-categories-images
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_aztheme-latest-posts-widget
    • can_compress_scripts
    • widget_aztheme-about-me
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_aztheme-social-media-links

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aztheme-toolkit/widgets/categories-images.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aztheme-toolkit/widgets/about-me.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aztheme-toolkit/widgets/social-media-links.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aztheme-toolkit/admin/customizer.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aztheme-toolkit/admin/categories-images/categories-images.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/aztheme-toolkit/widgets/latest-posts.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/aztheme-toolkit/elementor/producta-base.php on line 38
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/aztheme-toolkit/elementor/producta-base.php on line 38
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/aztheme-toolkit/elementor/producta-base.php on line 38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/aztheme-toolkit/elementor/producta-base.php:41

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can take inspiration from this readme.txt

aztheme-toolkit/aztheme-toolkit.php Passed 13 tests

"AZ-Theme Toolkit" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
AZTheme Toolkit provides you necessary widgets for better and effective blogging.

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
No dangerous file extensions were detected1,378 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP121493241,243
CSS104109
JavaScript11026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods56
▷ Static methods11.79%
▷ Public methods4885.71%
▷ Protected methods814.29%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/categories-images/category-thumbnail-placeholder.png27.87KB11.37KB▼ 59.19%