Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.99ms] Passed 4 tests
A check of server-side resources used by WP DPLA
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.76 ▼7.55 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.93 ▼4.16 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.19 ▼5.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.34 ▲1.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 42.13 ▲5.10 |
DPLA /wp-admin/options-general.php?page=wp-dpla | 3.23 | 32.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP DPLA: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.53 ▼0.84 | 1.85 ▼0.21 | 43.85 ▼3.50 |
Dashboard /wp-admin | 2,218 ▲33 | 5.84 ▼0.05 | 98.85 ▼13.51 | 42.31 ▼3.41 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.99 ▼0.13 | 36.97 ▼2.61 | 38.63 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 17.71 ▼5.39 | 677.29 ▼17.53 | 56.48 ▲0.89 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.26 ▲0.06 | 99.98 ▼1.75 | 43.82 ▼0.01 |
DPLA /wp-admin/options-general.php?page=wp-dpla | 803 | 2.05 | 25.22 | 27.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-dpla/tests/bootstrap.php on line 3
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-dpla/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dpla/wp-dpla.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-dpla/tests/test-sample.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-dpla/includes/class-wp-dpla-widget.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
- Tested up to: The plugin version is formatted incorrectly
- Plugin Name: Please specify the plugin name on the first line (
=== wp-dpla ===
)
wp-dpla/wp-dpla.php Passed 13 tests
The main file in "WP DPLA" v. 0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Display related items from the Digital Public Library of America on your WP posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected791 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 168 | 289 | 673 |
Markdown | 2 | 28 | 0 | 60 |
YAML | 1 | 5 | 3 | 27 |
JSON | 1 | 0 | 0 | 17 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 59 | 90.77% |
▷ Protected methods | 6 | 9.23% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
There were not PNG files found in your plugin