Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/snazzy-archives/snazzy-archives.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; SnazzyArchives has a deprecated constructor
Server metrics [RAM: ▼1.68MB] [CPU: ▼196.15ms] Passed 4 tests
An overview of server-side resources used by Snazzy Archives
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.95 ▼0.77 | 5.84 ▼13.03 |
Dashboard /wp-admin | 1.97 ▼1.08 | 9.95 ▼39.41 |
Posts /wp-admin/edit.php | 1.97 ▼1.13 | 6.59 ▼38.74 |
Add New Post /wp-admin/post-new.php | 1.97 ▼3.46 | 5.88 ▼675.87 |
Media Library /wp-admin/upload.php | 1.97 ▼1.03 | 5.70 ▼30.57 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 1 new option
New WordPress options |
---|
SnazzyArchives_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Snazzy Archives
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲243 | 16.67 ▲1.00 | 15.67 ▲4.36 | 50.09 ▼6.56 |
Dashboard /wp-admin | 2,975 ▲44 | 5.96 ▼0.14 | 140.99 ▼18.68 | 110.98 ▼6.09 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.01 | 70.75 ▼6.54 | 106.97 ▲13.94 |
Add New Post /wp-admin/post-new.php | 1,686 ▲188 | 18.51 ▼0.33 | 386.86 ▼13.07 | 104.58 ▼7.94 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▼0.00 | 171.97 ▲13.03 | 119.30 ▲5.97 |
Snazzy Archives /wp-admin/snazzy-archives.php | 26 | 0.90 | 0.67 | 11.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/snazzy-archives/snazzy-archives.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; SnazzyArchives has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- SnazzyArchives_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/snazzy-archives/template_example/snazzy-template.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/snazzy-archives/snazzy-archives-options.php:18
- > PHP Notice
Undefined variable: post in wp-content/plugins/snazzy-archives/snazzy-layout-2.php on line 1
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/snazzy-archives/snazzy-archives-options.php on line 15
- > PHP Notice
Trying to get property 'post_type' of non-object in wp-content/plugins/snazzy-archives/snazzy-layout-2.php on line 1
- > PHP Notice
Undefined variable: imgpath in wp-content/plugins/snazzy-archives/snazzy-archives-options.php on line 8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/snazzy-archives/snazzy-layout-2.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/snazzy-archives/snazzy-archives.php:52
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/snazzy-archives/snazzy-layout-1.php:2
- > PHP Notice
Undefined variable: first_for_day in wp-content/plugins/snazzy-archives/snazzy-layout-1.php on line 1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/snazzy-archives.php
- > Network (severe)
wp-admin/snazzy-archives.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Snazzy Archives), #2 (Snazzy layout 1 in use)
snazzy-archives/snazzy-archives.php Passed 13 tests
The primary PHP file in "Snazzy Archives" version 1.7.3 is used by WordPress to initiate all plugin functionality
112 characters long description:
Snazzy Archives is a visualization plugin for your WordPress site which creates completely unique archive pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,296 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 73 | 183 | 627 |
PHP | 5 | 197 | 86 | 573 |
CSS | 1 | 22 | 3 | 96 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 115.00 |
▷ Minimum class complexity | 115.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 10.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 58.68KB | 57.97KB | ▼ 1.22% |
i/twit.png | 0.71KB | 0.80KB | 0.00% |
i/idea.png | 0.81KB | 0.70KB | ▼ 13.99% |
i/home.png | 0.94KB | 0.85KB | ▼ 9.97% |
i/mwp250_2.png | 22.54KB | 21.97KB | ▼ 2.52% |