Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.61ms] Passed 4 tests
Analyzing server-side resources used by ArchivesPress: Index Blocks for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 44.37 ▲1.57 |
Dashboard /wp-admin | 3.45 ▲0.15 | 52.80 ▲1.61 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.58 ▼4.61 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 87.42 ▼13.78 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.13 ▼1.60 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ArchivesPress: Index Blocks for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.19 | 1.82 ▼0.10 | 43.00 ▲3.14 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▲0.10 | 99.81 ▲11.54 | 44.38 ▼1.96 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.01 | 34.85 ▼10.09 | 35.29 ▼4.05 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,836 | 28.17 ▲5.14 | 848.89 ▲189.88 | 38.40 ▼15.27 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.24 ▼0.01 | 125.78 ▲26.20 | 40.63 ▼1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/archivespress/archivespress.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
archivespress/archivespress.php 92% from 13 tests
The main PHP script in "ArchivesPress: Index Blocks for WordPress" version 3.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,023 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 374 | 38 | 1,112 |
JSON | 7 | 0 | 0 | 576 |
CSS | 4 | 14 | 0 | 514 |
JavaScript | 6 | 10 | 0 | 475 |
Sass | 10 | 51 | 4 | 346 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 13 | 12.87% |
▷ Public methods | 69 | 68.32% |
▷ Protected methods | 27 | 26.73% |
▷ Private methods | 5 | 4.95% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin