Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/prospect/php/class-attribute.php+78
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼0.61MB] [CPU: ▼47.88ms] Passed 4 tests
Server-side resources used by Prospect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.37 ▼0.09 | 8.65 ▼28.40 |
Dashboard /wp-admin | 3.39 ▲0.09 | 11.78 ▼37.41 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 12.04 ▼37.49 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.49 | 10.73 ▼88.23 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 13.62 ▼18.19 |
Volumes /wp-admin/edit.php?post_type=prsp-volume | 3.40 | 11.73 |
Perspectives /wp-admin/edit.php?post_type=prsp-prspctv | 3.40 | 10.81 |
Settings /wp-admin/admin.php?page=prsp-settings-page | 3.39 | 11.08 |
Exhibits /wp-admin/edit.php?post_type=prsp-exhibit | 3.40 | 9.75 |
Records /wp-admin/edit.php?post_type=prsp-record | 3.40 | 13.51 |
Templates /wp-admin/edit.php?post_type=prsp-template | 3.40 | 11.03 |
Readings /wp-admin/edit.php?post_type=prsp-reading | 3.40 | 10.32 |
CSV Importer Improved /wp-admin/tools.php?page=prospect/lib/csv-importer/csv_importer.php | 3.39 | 10.04 |
Map Library /wp-admin/edit.php?post_type=prsp-map | 3.40 | 12.05 |
Attributes /wp-admin/edit.php?post_type=prsp-attribute | 3.40 | 10.15 |
Server storage [IO: ▲5.13MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 138 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
csv_importer_cat |
csv_importer_import_as_draft |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Prospect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 14.48 ▼0.11 | 1.57 ▼0.24 | 39.62 ▼0.24 |
Dashboard /wp-admin | 2,290 ▲102 | 5.84 ▲0.98 | 108.57 ▲5.91 | 38.93 ▼4.69 |
Posts /wp-admin/edit.php | 2,173 ▲84 | 2.01 ▲0.00 | 41.19 ▲1.36 | 34.49 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,606 ▲76 | 23.33 ▲0.16 | 612.92 ▼91.30 | 51.40 ▼4.85 |
Media Library /wp-admin/upload.php | 1,475 ▲84 | 4.21 ▼0.08 | 93.61 ▼8.90 | 41.49 ▼3.29 |
Volumes /wp-admin/edit.php?post_type=prsp-volume | 1,134 | 1.98 | 32.99 | 27.51 |
Perspectives /wp-admin/edit.php?post_type=prsp-prspctv | 1,137 | 1.96 | 34.41 | 30.22 |
Settings /wp-admin/admin.php?page=prsp-settings-page | 906 | 2.06 | 23.56 | 28.79 |
Exhibits /wp-admin/edit.php?post_type=prsp-exhibit | 1,134 | 2.01 | 29.55 | 25.73 |
Records /wp-admin/edit.php?post_type=prsp-record | 1,219 | 1.93 | 31.16 | 30.57 |
Templates /wp-admin/edit.php?post_type=prsp-template | 1,134 | 1.98 | 30.42 | 29.60 |
Readings /wp-admin/edit.php?post_type=prsp-reading | 1,134 | 1.95 | 30.50 | 28.28 |
CSV Importer Improved /wp-admin/tools.php?page=prospect/lib/csv-importer/csv_importer.php | 904 | 2.03 | 25.23 | 34.37 |
Map Library /wp-admin/edit.php?post_type=prsp-map | 1,177 | 1.94 | 31.06 | 30.54 |
Attributes /wp-admin/edit.php?post_type=prsp-attribute | 1,153 | 1.95 | 31.07 | 26.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/prospect/php/class-attribute.php+78
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- csv_importer_import_as_draft
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- csv_importer_cat
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 18 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=prsp-attribute
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/prospect/php/class-attribute.php+78
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/admin.php?page=prsp-settings-page
- > Notice in wp-content/plugins/prospect/php/class-prospect-admin.php+2525
Trying to access array offset on value of type bool
SRP 50% 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 take a closer look at the following
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/prospect/php/view-exhibit.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prospect/php/scripts/english-us/edit-attribute.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/prospect/php/view-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prospect/php/scripts/english-us/view-volume.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prospect/php/scripts/english-us/edit-exhibit.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prospect/lib/csv-importer/csv_importer.php:628
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prospect/lib/csv-importer/examples/functions.inc.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prospect/php/scripts/english-us/view-record.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/prospect/php/scripts/english-us/edit-record.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/prospect/php/view-volume.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: digital humanities, data visualization
prospect/prospect.php Passed 13 tests
The principal PHP file in "Prospect" v. 1.8.9.1 is loaded by WordPress automatically on each request
63 characters long description:
Digital Humanities platform for visualizing curated collections
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 detected92,736 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 38 | 11,652 | 14,155 | 76,988 |
PHP | 28 | 1,412 | 2,874 | 11,018 |
CSS | 15 | 990 | 646 | 4,539 |
Markdown | 2 | 52 | 0 | 118 |
JSON | 2 | 0 | 0 | 73 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 62.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 349.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 275 | |
▷ Static methods | 34 | 12.36% |
▷ Public methods | 263 | 95.64% |
▷ Protected methods | 8 | 2.91% |
▷ Private methods | 4 | 1.45% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 0.77MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/leaflet/images/marker-icon.png | 1.71KB | 1.56KB | ▼ 8.59% |
css/images/ui-icons_454545_256x240.png | 242.99KB | 7.40KB | ▼ 96.96% |
lib/hopscotch/img/sprite-orange.png | 5.25KB | 4.02KB | ▼ 23.48% |
lib/hopscotch/img/sprite-green.png | 5.28KB | 4.01KB | ▼ 23.96% |
lib/leaflet/images/marker-shadow.png | 0.78KB | 1.16KB | 0.00% |