Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.58MB] [CPU: ▼45.52ms] Passed 4 tests
A check of server-side resources used by jPress Archive
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.41 ▼1.05 | 11.38 ▼27.23 |
Dashboard /wp-admin | 2.43 ▼0.88 | 11.86 ▼35.49 |
Posts /wp-admin/edit.php | 2.43 ▼0.93 | 11.51 ▼36.07 |
Add New Post /wp-admin/post-new.php | 2.43 ▼3.46 | 11.35 ▼83.29 |
Media Library /wp-admin/upload.php | 2.43 ▼0.80 | 12.91 ▼17.65 |
Archives /wp-admin/edit.php?post_type=page&post_status=archived | 2.43 | 11.97 |
Archives /wp-admin/edit.php?post_type=post&post_status=archived | 2.43 | 12.97 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_jpress-archive |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for jPress Archive
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.35 ▼1.27 | 1.67 ▼0.44 | 42.66 ▼1.93 |
Dashboard /wp-admin | 2,232 ▲44 | 5.84 ▲0.96 | 101.70 ▼11.21 | 77.11 ▲30.55 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.04 ▲0.02 | 40.36 ▲2.82 | 34.98 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 18.22 ▲0.62 | 676.13 ▲63.13 | 62.00 ▲6.07 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.18 ▼0.02 | 93.74 ▼2.55 | 66.96 ▲25.44 |
Archives /wp-admin/edit.php?post_type=page&post_status=archived | 1,217 | 1.98 | 34.79 | 27.80 |
Archives /wp-admin/edit.php?post_type=post&post_status=archived | 1,298 | 1.96 | 34.15 | 35.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Jpress_Widget_Archives is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_jpress-archive
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=post&post_status=archived
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Jpress_Widget_Archives is deprecated since version 4.3.0! Use __construct() instead.
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 items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/jpress-archive/widget/class-jpress-widget-archives.php
- > /wp-content/plugins/jpress-archive/jpress-archive.php
- > /wp-content/plugins/jpress-archive/admin/class-jpress-archive-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: purge, archive, post, custom post type
jpress-archive/jpress-archive.php Passed 13 tests
This is the main PHP file of "jPress Archive" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
Manual archive features for all your post types using post status features.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected659 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 72 | 90 | 490 |
PO File | 2 | 55 | 61 | 169 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
archive-white.png | 3.20KB | 0.55KB | ▼ 82.73% |
archive-grey.png | 3.28KB | 0.61KB | ▼ 81.43% |