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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.70 ▼1.67 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.74 ▼3.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.79 ▼0.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.60 ▲8.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.26 ▼1.10 | 4.87 ▲2.99 | 46.65 ▲2.78 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼0.02 | 99.98 ▼14.71 | 40.33 ▼10.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 39.75 ▲1.24 | 34.54 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,528 ▼14 | 18.38 ▲0.06 | 616.04 ▼43.47 | 49.79 ▼7.12 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.02 | 97.96 ▼5.40 | 44.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
- > PHP Parse error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 150 | 68 | 394 |
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 code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 107.37KB | 29.13KB | ▼ 72.87% |
screenshot-3.png | 173.03KB | 43.86KB | ▼ 74.65% |
screenshot-4.png | 65.11KB | 16.80KB | ▼ 74.20% |
screenshot-1.png | 142.02KB | 37.77KB | ▼ 73.41% |