90% ae-admin-customizer

Code Review | AE Admin Customizer

WordPress plugin AE Admin Customizer scored90%from 54 tests.

About plugin

  • Plugin page: ae-admin-customizer
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Aug 8, 2017
  • Number of updates: 51
  • Update frequency: every 0.4 days
  • Top authors: allan.empalmado (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,231 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼12.90ms] Passed 4 tests

This is a short check of server-side resources used by AE Admin Customizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5647.67 ▲6.40
Dashboard /wp-admin3.78 ▲0.4338.56 ▼26.95
Posts /wp-admin/edit.php3.90 ▲0.5343.94 ▼6.77
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.05 ▼22.51
Media Library /wp-admin/upload.php3.75 ▲0.5241.97 ▲4.65

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AE Admin Customizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲22714.87 ▲0.701.78 ▼0.0856.82 ▲14.97
Dashboard /wp-admin2,425 ▲2486.43 ▲0.79119.18 ▲23.06113.49 ▲67.29
Posts /wp-admin/edit.php2,308 ▲2113.58 ▲1.5460.20 ▲21.4382.88 ▲47.20
Add New Post /wp-admin/post-new.php1,723 ▲19122.56 ▼0.63642.34 ▼8.3445.58 ▼10.07
Media Library /wp-admin/upload.php1,451 ▲514.32 ▲0.1995.85 ▼17.98103.80 ▲53.99

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: login, wp-admin, branding, customize, admin-customizer...

ae-admin-customizer/ae-admin-customizer.php 92% from 13 tests

The main file in "AE Admin Customizer" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,781 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP85236222,038
PO File2212244515
CSS1342154
JavaScript219574

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity56.83
▷ Minimum class complexity5.00
▷ Maximum class complexity137.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods99
▷ Static methods8787.88%
▷ Public methods99100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/image/no-image.png2.38KB2.40KB0.00%
assets/image/icon.png3.72KB1.08KB▼ 71.09%
assets/image/appdevph-logo.png3.45KB2.20KB▼ 36.14%