84% artsy

Code Review | Artsy

WordPress plugin Artsy scored84%from 54 tests.

About plugin

  • Plugin page: artsy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-2.9.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2014
  • Latest release: Jan 10, 2014
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: keegnotrub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,028 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.67MB] [CPU: ▼16.57ms] Passed 4 tests

Server-side resources used by Artsy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.94 ▼2.92
Dashboard /wp-admin3.33 ▲0.0344.31 ▼5.38
Posts /wp-admin/edit.php3.38 ▲0.0356.24 ▲8.30
Add New Post /wp-admin/post-new.php3.12 ▼2.7736.60 ▼55.28
Media Library /wp-admin/upload.php3.26 ▲0.0334.92 ▼2.70

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Artsy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3213.16 ▼1.211.73 ▼0.2741.59 ▼0.85
Dashboard /wp-admin2,206 ▲184.84 ▼0.0597.07 ▼5.6541.07 ▲1.46
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0940.01 ▲3.3939.82 ▲4.58
Add New Post /wp-admin/post-new.php6,237 ▲4,69519.16 ▼4.13881.27 ▲208.3664.30 ▲10.91
Media Library /wp-admin/upload.php1,394 ▲34.22 ▲0.0098.22 ▼15.8741.46 ▼7.48

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/artsy/artsy.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: style, art, art-direction, formatting, css...

artsy/artsy.php Passed 13 tests

This is the main PHP file of "Artsy" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Art Direction for WordPress - Allows you to enter custom CSS to be applied per post/page.

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
There were no executable files found in this plugin152 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13316152

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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