Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.88ms] Passed 4 tests
An overview of server-side resources used by WP Publication Archive
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.89 ▲0.05 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.53 ▼0.42 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 52.46 ▼8.59 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.59 ▼24.78 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.34 ▼5.73 |
Authors /wp-admin/edit-tags.php?taxonomy=publication-author&post_type=publication | 3.29 | 32.54 |
Publications /wp-admin/edit.php?post_type=publication | 3.35 | 38.11 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=publication | 3.29 | 35.43 |
Add New /wp-admin/post-new.php?post_type=publication | 3.43 | 52.10 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=publication | 3.29 | 46.13 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_wp_publication_archive_widget |
can_compress_scripts |
db_upgraded |
widget_wp_publication_archive_cat_count_widget |
category_children |
wp-publication-archive-core |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
WP Publication Archive: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.70 ▼0.67 | 1.90 ▲0.05 | 44.02 ▲5.22 |
Dashboard /wp-admin | 2,236 ▲77 | 5.81 ▼0.07 | 108.41 ▼137.46 | 68.18 ▼5.87 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.22 ▲0.17 | 42.26 ▼6.08 | 36.73 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 23.13 ▼0.03 | 777.26 ▼31.74 | 37.31 ▼20.69 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.26 ▲0.07 | 101.92 ▼42.12 | 69.38 ▲19.05 |
Authors /wp-admin/edit-tags.php?taxonomy=publication-author&post_type=publication | 1,278 | 2.32 | 31.46 | 31.29 |
Publications /wp-admin/edit.php?post_type=publication | 1,152 | 2.15 | 37.40 | 32.74 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=publication | 1,351 | 2.26 | 29.55 | 32.70 |
Add New /wp-admin/post-new.php?post_type=publication | 2,612 | 7.91 | 188.64 | 124.64 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=publication | 1,487 | 2.27 | 33.27 | 39.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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: 11 options
- widget_theysaidso_widget
- widget_wp_publication_archive_category_widget
- category_children
- db_upgraded
- widget_wp_publication_archive_cat_count_widget
- can_compress_scripts
- widget_wp_publication_archive_widget
- widget_recent-posts
- wp-publication-archive-core
- theysaidso_admin_options
- ...
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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-publication-archive/includes/template.wppa_publication_list.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: publications in wp-content/plugins/wp-publication-archive/includes/template.wppa_publication_list.php on line 25
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-publication-archive/includes/template.wppa_publication_dropdown.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-publication-archive/lib/class.wp-publication-archive-category-widget.php:15
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-publication-archive/includes/template.wppa_publication_list.php on line 22
- > PHP Notice
Undefined variable: limit in wp-content/plugins/wp-publication-archive/includes/template.wppa_publication_list.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-publication-archive/wp-publication-archive.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-publication-archive/includes/template.wppa_publication_dropdown.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-publication-archive/lib/class.wp-publication-archive-utilities.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-publication-archive/lib/class.wp-publication-archive-cat-count-widget.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wp-publication-archive/includes/template.wppa_widget.php:14
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: doc, document management, pdf, archive
wp-publication-archive/wp-publication-archive.php Passed 13 tests
"WP Publication Archive" version 3.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
123 characters long description:
Allows users to upload, manage, search, and download publications, documents, and similar content (PDF, Power-Point, etc.).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,924 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 397 | 905 | 1,619 |
PO File | 2 | 113 | 134 | 264 |
CSS | 1 | 8 | 0 | 41 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 30 | 40.54% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 3 | 4.05% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/image.png | 4.25KB | 1.42KB | ▼ 66.63% |
images/icons/unknown.png | 3.08KB | 0.48KB | ▼ 84.40% |
images/icons/data.png | 3.67KB | 1.00KB | ▼ 72.72% |
images/icons/broken.png | 3.84KB | 1.07KB | ▼ 72.16% |
images/icons/zip.png | 4.00KB | 1.44KB | ▼ 63.94% |