93% add-art

Code Review | Add-Art

WordPress plugin Add-Art scored 93% from 54 tests.

About plugin

  • Plugin page: add-art
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.9.2
  • First release: Nov 8, 2014
  • Latest release: Nov 23, 2014
  • Number of updates: 23
  • Update frequency: every 0.8 days
  • Top authors: bolivares (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Add-Art
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0453.40 ▲3.86
Dashboard /wp-admin3.44 ▲0.0334.38 ▲1.20
Posts /wp-admin/edit.php3.68 ▲0.0339.81 ▲0.34
Add New Post /wp-admin/post-new.php6.92 ▼0.0694.52 ▼1,175.39
Media Library /wp-admin/upload.php3.33 ▲0.0322.68 ▼1.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Add-Art
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1116.01 ▲0.396.06 ▼0.172.35 ▼0.45
Dashboard /wp-admin2,894 ▲336.08 ▼0.14117.05 ▼19.90157.70 ▼6.54
Posts /wp-admin/edit.php2,693 ▲23.37 ▲0.1365.76 ▼0.15144.69 ▲0.42
Add New Post /wp-admin/post-new.php1,775 ▲11517.67 ▲0.71402.02 ▼37.15189.19 ▲30.67
Media Library /wp-admin/upload.php1,692 ▼35.56 ▲0.11145.56 ▲2.26183.13 ▼0.35

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
The plugin uninstalled successfully, without leaving any zombie files or tables

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 everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-art/plugin.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Contributors: There were no tags found
  • Plugin Name: You should set the name of your plugin on the first line ( === add-art === )
The official readme.txt is a good inspiration

add-art/plugin.php 92% from 13 tests

The main PHP file in "Add-Art" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-art.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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 functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin