Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.27ms] Passed 4 tests
Analyzing server-side resources used by OurRootsDatabase
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.63 ▼2.33 |
Dashboard /wp-admin | 3.35 ▲0.00 | 47.37 ▼11.83 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.57 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.84 ▼0.38 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.30 ▲1.11 |
Server storage [IO: ▲2.31MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for OurRootsDatabase
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲44 | 14.67 ▲0.31 | 1.67 ▲0.01 | 43.91 ▲0.40 |
Dashboard /wp-admin | 2,214 ▲37 | 5.59 ▼0.02 | 92.16 ▼5.35 | 40.67 ▼0.32 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.01 | 39.00 ▲2.15 | 34.84 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.68 ▲0.44 | 658.69 ▲45.87 | 45.05 ▼4.49 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.22 ▼0.07 | 96.66 ▼0.84 | 40.88 ▼2.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- 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 everything seems fine, this is not an exhaustive test
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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ourrootsdatabase/ourroots.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ourrootsdatabase/includes/ourroots-class.php:9
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: genealogy
ourrootsdatabase/ourroots.php 85% from 13 tests
The entry point to "OurRootsDatabase" version 1.0.18 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ourrootsdatabase.php" instead of "ourroots.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected486 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1 | 47 | 297 |
PHP | 2 | 19 | 21 | 178 |
JavaScript | 2 | 0 | 31 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
40 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/seadragon/zoomout_rest.png | 0.46KB | 0.29KB | ▼ 35.55% |
img/seadragon/fullpage_hover.png | 0.33KB | 0.20KB | ▼ 39.29% |
img/seadragon/flip_rest.png | 4.80KB | 1.88KB | ▼ 60.98% |
img/seadragon/zoomout_pressed.png | 0.46KB | 0.29KB | ▼ 36.36% |
img/seadragon/button_rest.png | 1.04KB | 1.81KB | 0.00% |