10% artichoke

Code Review | Artichoke

WordPress plugin Artichoke scored10%from 54 tests.

About plugin

  • Plugin page: artichoke
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: alanvillalobos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /713 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/artichoke/meta_boxes/page_meta_box.php+248
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Artichoke
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.70 ▼1.67
Dashboard /wp-admin3.31 ▲0.0043.74 ▼3.13
Posts /wp-admin/edit.php3.36 ▲0.0046.79 ▼0.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.60 ▲8.16
Media Library /wp-admin/upload.php3.23 ▲0.0036.25 ▲2.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Artichoke
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.104.87 ▲2.9946.65 ▲2.78
Dashboard /wp-admin2,206 ▲184.89 ▼0.0299.98 ▼14.7140.33 ▼10.94
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0239.75 ▲1.2434.54 ▲2.31
Add New Post /wp-admin/post-new.php1,528 ▼1418.38 ▲0.06616.04 ▼43.4749.79 ▼7.12
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0297.96 ▼5.4044.90 ▲0.76

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/artichoke/meta_boxes/template_field_values.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/artichoke/meta_boxes/template_meta_box.php on line 163
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/artichoke/filters/template_filters.php:34
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/artichoke/meta_boxes/page_meta_box.php on line 248
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artichoke/custom_types/template_cpt.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artichoke/custom_types/template_cpt.php:44

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Editing an Artichoke Template `Album Review`. Notice the custom CSS), #2 (Using the `Album Review` template for a page.), #3 (How the page actually looks with real content.), #4 (Previewing the template without real content.)
The official readme.txt is a good inspiration

artichoke/artichoke.php Passed 13 tests

"Artichoke" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
An easy way to make reusable page templates and components.

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
Success! There were no dangerous files found in this plugin394 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP715068394

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions9
▷ Named functions9100.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
4 PNG files occupy 0.48MB with 0.35MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png107.37KB29.13KB▼ 72.87%
screenshot-3.png173.03KB43.86KB▼ 74.65%
screenshot-4.png65.11KB16.80KB▼ 74.20%
screenshot-1.png142.02KB37.77KB▼ 73.41%