94% ap-theme-utility-plugin

Code Review | AP Theme Utility Plugin

WordPress plugin AP Theme Utility Plugin scored 94% from 54 tests.

About plugin

  • Plugin page: ap-theme-utility-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 5.8.1
  • First release: Apr 17, 2017
  • Latest release: Mar 22, 2019
  • Number of updates: 17
  • Update frequency: every 41.8 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 22,101 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼140.81ms] Passed 4 tests

This is a short check of server-side resources used by AP Theme Utility Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.18 ▲0.3442.34 ▲6.55
Dashboard /wp-admin3.47 ▲0.4152.36 ▲0.27
Posts /wp-admin/edit.php3.51 ▲0.4153.54 ▲5.37
Add New Post /wp-admin/post-new.php5.76 ▲0.3396.51 ▼565.15
Media Library /wp-admin/upload.php3.35 ▲0.3435.00 ▼3.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AP Theme Utility Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.91 ▲0.1914.35 ▲4.2247.48 ▼1.44
Dashboard /wp-admin2,967 ▲335.92 ▼0.05160.74 ▲2.84109.84 ▼4.51
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0371.84 ▼1.3592.22 ▲3.90
Add New Post /wp-admin/post-new.php1,500 ▼18318.49 ▼0.19391.22 ▼25.88117.39 ▲8.75
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.02158.28 ▼6.61117.67 ▲0.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ap-theme-utility-plugin/ap-theme-utility-plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

ap-theme-utility-plugin/ap-theme-utility-plugin.php 92% from 13 tests

Analyzing the main PHP file in "AP Theme Utility Plugin" version 1.0.5
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected8,086 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity58.50
▷ Minimum class complexity13.00
▷ Maximum class complexity183.00
Average method complexity6.64
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6198.39%
▷ Protected methods11.61%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
importer/demo/scrollme-demo/screen.png113.82KB31.84KB▼ 72.03%
css/preview.png0.44KB0.37KB▼ 16.48%