Benchmarks
Plugin footprint 83% from 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.14MB] [CPU: ▼5.90ms] Passed 4 tests
Server-side resources used by Archivist - Custom Archive Templates
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.87 ▼7.94 |
Dashboard /wp-admin | 3.44 ▲0.14 | 45.87 ▼3.59 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.24 ▼0.77 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 86.92 ▼7.99 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.57 ▼4.06 |
Archivist /wp-admin/options-general.php?page=archivist_options_handle | 3.30 | 28.99 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
archivist |
widget_theysaidso_widget |
archivist_default_template_name |
can_compress_scripts |
archivist_version |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Archivist - Custom Archive Templates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.29 ▼0.94 | 4.28 ▲2.33 | 41.35 ▼8.68 |
Dashboard /wp-admin | 2,213 ▲28 | 4.82 ▼1.06 | 108.21 ▲7.24 | 39.74 ▼4.04 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.02 ▼0.00 | 35.61 ▼8.67 | 32.26 ▼6.20 |
Add New Post /wp-admin/post-new.php | 1,540 ▼5 | 23.35 ▲5.32 | 642.79 ▲18.97 | 63.31 ▲7.30 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.16 ▲0.01 | 96.01 ▼3.57 | 44.50 ▼1.60 |
Archivist /wp-admin/options-general.php?page=archivist_options_handle | 1,933 | 4.13 | 83.07 | 74.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- archivist_version
- db_upgraded
- widget_recent-posts
- archivist
- archivist_default_template_name
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=archivist_options_handle
- > Deprecated in wp-content/plugins/archivist-custom-archive-templates/archivist.php+431
Function get_magic_quotes_gpc() is deprecated
SRP Passed 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
The SRP test was a success
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: query, category, loop, tag, archive...
archivist-custom-archive-templates/archivist.php 92% from 13 tests
This is the main PHP file of "Archivist - Custom Archive Templates" version 1.7.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("archivist-custom-archive-templates.php" instead of "archivist.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin22,349 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,578 | 21 | 21,091 |
PHP | 2 | 189 | 92 | 992 |
PO File | 2 | 114 | 204 | 266 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 3 | 7.69% |
▷ Public methods | 21 | 53.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 46.15% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 46.46KB | 16.21KB | ▼ 65.10% |