84% artistic-header

Code Review | Artistic Header

WordPress plugin Artistic Header scored84%from 54 tests.

About plugin

  • Plugin page: artistic-header
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2017
  • Latest release: Apr 9, 2017
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: shalaeva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.01ms] Passed 4 tests

Analyzing server-side resources used by Artistic Header
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.90 ▲1.16
Dashboard /wp-admin3.31 ▲0.0045.63 ▼4.74
Posts /wp-admin/edit.php3.36 ▲0.0050.48 ▲3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.54 ▼21.16
Media Library /wp-admin/upload.php3.23 ▲0.0035.91 ▲0.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Artistic Header
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.161.61 ▼0.1338.34 ▼2.70
Dashboard /wp-admin2,209 ▲184.82 ▼0.0798.79 ▼8.7238.28 ▼8.27
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0843.51 ▲5.3337.87 ▲2.32
Add New Post /wp-admin/post-new.php1,534 ▲1322.95 ▼0.12661.72 ▼43.8150.65 ▼11.84
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0498.19 ▲2.6243.36 ▲1.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artistic-header/artistic-header.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "paypal.me/shalaeva"
You can look at the official readme.txt

artistic-header/artistic-header.php Passed 13 tests

Analyzing the main PHP file in "Artistic Header" version 1.0
62 characters long description:
Set your image as background for header and choose text color.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected83 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File181029

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.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 1.22MB with 0.89MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
artistic-header.png1,252.14KB343.19KB▼ 72.59%