84% athemeart-theme-helper

Code Review | aThemeArt Theme Helper

WordPress plugin aThemeArt Theme Helper scored84%from 54 tests.

About plugin

  • Plugin page: athemeart-theme-h...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.2
  • WordPress version: 6.3.1
  • First release: May 22, 2019
  • Latest release: Jul 25, 2022
  • Number of updates: 23
  • Update frequency: every 51.9 days
  • Top authors: athemeart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /44,905 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.16ms] Passed 4 tests

This is a short check of server-side resources used by aThemeArt Theme Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.21 ▼2.49
Dashboard /wp-admin3.34 ▲0.0352.18 ▼1.03
Posts /wp-admin/edit.php3.45 ▲0.0950.65 ▼4.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.47 ▼24.09
Media Library /wp-admin/upload.php3.26 ▲0.0336.94 ▼1.14
Twenty Twenty-One Install Demos /wp-admin/themes.php?page=athemeart-panel-install-demos3.2339.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

aThemeArt Theme Helper: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.40 ▼0.181.67 ▼0.3441.42 ▲1.85
Dashboard /wp-admin2,195 ▲215.53 ▼0.1686.46 ▼17.9642.24 ▼4.51
Posts /wp-admin/edit.php2,085 ▼152.02 ▼0.0236.00 ▼6.9436.34 ▼1.28
Add New Post /wp-admin/post-new.php1,548 ▲823.35 ▲5.22663.41 ▲26.0160.35 ▼5.23
Media Library /wp-admin/upload.php1,409 ▲94.24 ▼0.0299.66 ▼19.7944.52 ▼8.21
Twenty Twenty-One Install Demos /wp-admin/themes.php?page=athemeart-panel-install-demos9082.2329.8934.83

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/themes.php?page=athemeart-panel-install-demos
    • > Network (severe)
    https://demo.athemeart.com/demo-import/blog-screenshot.jpg - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: athemeart theme helper, demo importer, theme options

athemeart-theme-helper/athemeart-theme-helper.php 92% from 13 tests

The principal PHP file in "aThemeArt Theme Helper" v. 1.0.5 is loaded by WordPress automatically on each request
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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected23,718 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
XML230716118,951
PHP208599543,618
CSS5989695
JavaScript416884454

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity38.19
▷ Minimum class complexity2.00
▷ Maximum class complexity196.00
Average method complexity6.04
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods118
▷ Static methods2016.95%
▷ Public methods11093.22%
▷ Protected methods32.54%
▷ Private methods54.24%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected