90% appearancetools

Code Review | AppearanceTools

WordPress plugin AppearanceTools scored90%from 54 tests.

About plugin

  • Plugin page: appearancetools
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2023
  • Latest release: Mar 26, 2023
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: James Roberts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /202 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.01ms] Passed 4 tests

A check of server-side resources used by AppearanceTools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.38 ▼1.19
Dashboard /wp-admin3.32 ▲0.0147.86 ▼3.87
Posts /wp-admin/edit.php3.37 ▲0.0149.50 ▲1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.85 ▼0.67
Media Library /wp-admin/upload.php3.24 ▲0.0138.43 ▲2.26

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

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

Browser metrics Passed 4 tests

AppearanceTools: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.341.71 ▼0.3443.41 ▲0.03
Dashboard /wp-admin2,224 ▲185.85 ▼0.0699.01 ▼12.6345.01 ▲4.70
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0639.64 ▲2.7433.98 ▼1.08
Add New Post /wp-admin/post-new.php1,531 ▼1723.21 ▲0.05601.81 ▼85.9851.60 ▼2.14
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.06101.08 ▼4.0143.76 ▲0.16

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: design, block-editor, style-options, full-site-editing, appearancetools

appearancetools/appearancetools.php Passed 13 tests

The entry point to "AppearanceTools" version 1.0.0 is a PHP file that has certain tags in its header comment area
129 characters long description:
If your current theme has deactivated any appearance or style tools in the Block Editor, this small plugin will re-activate them.

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
Everything looks great! No dangerous files found in this plugin348 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1580281
PHP3114867

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected