Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.23ms] Passed 4 tests
Server-side resources used by Extensions for PressBooks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.09 ▼7.88 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.21 ▼2.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.39 ▼0.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.69 ▼21.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.53 ▼1.50 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Extensions for PressBooks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.23 ▼1.33 | 1.72 ▼0.31 | 40.88 ▼4.89 |
Dashboard /wp-admin | 2,200 ▲12 | 5.78 ▲0.86 | 103.77 ▼6.16 | 40.87 ▲0.80 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.11 | 42.75 ▲1.07 | 37.33 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.14 ▲4.94 | 673.42 ▲51.70 | 58.26 ▲7.03 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.04 | 96.00 ▼9.80 | 43.82 ▲1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/extensions-for-pressbooks/admin/efpb-admin-settings.php
- > /wp-content/plugins/extensions-for-pressbooks/extensions-for-pressbooks.php
- > /wp-content/plugins/extensions-for-pressbooks/post-metabox-pb_is_based_on/efpb-post-metabox-pb_is_based_on.php
- > /wp-content/plugins/extensions-for-pressbooks/network-admin/efpb-network-admin.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/default/efpb-default-theme.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/admin/efpb-theme-customizations.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/original-mark/efpb-original-mark.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/extensions-for-pressbooks/canonical/efpb-canonical.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/default/efpb-default-permalinks.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/default/efpb-default-settings.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/post/efpb-post.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extensions-for-pressbooks/groupByLanguage/efpb-groupByLanguage.php:18
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #2 is missing in extensions-for-pressbooks/assets to your readme.txt
extensions-for-pressbooks/extensions-for-pressbooks.php 92% from 13 tests
The main PHP file in "Extensions for PressBooks" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected453 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 100 | 362 | 429 |
JavaScript | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin