Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.69ms] Passed 4 tests
An overview of server-side resources used by Share Goodreads Update
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.59 ▼6.33 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.56 ▼5.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.10 ▲4.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.68 ▼5.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.33 ▼1.53 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_sgru_readingupdate |
Browser metrics Passed 4 tests
Checking browser requirements for Share Goodreads Update
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲45 | 14.48 ▲0.10 | 1.79 ▼0.29 | 40.34 ▼4.82 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲0.03 | 105.62 ▼3.19 | 39.98 ▼3.10 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.05 | 35.11 ▼0.63 | 30.50 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.58 ▼5.47 | 662.84 ▼38.45 | 55.33 ▼0.80 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.02 | 98.15 ▼7.28 | 41.93 ▼2.73 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_sgru_readingupdate
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 no errors were found, this is by no means 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-goodreads-update/ShareGoodreadsUpdate.php:21
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: isbn, goodreads, data, readers
share-goodreads-update/ShareGoodreadsUpdate.php 85% from 13 tests
The main PHP script in "Share Goodreads Update" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("share-goodreads-update.php" instead of "ShareGoodreadsUpdate.php")
- Description: The description should be shorter than 140 characters (currently 182 characters long)
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
There were no executable files found in this plugin1,910 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 394 | 332 | 1,850 |
CSS | 1 | 13 | 2 | 60 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 135.67 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 1 | 1.06% |
▷ Public methods | 79 | 84.04% |
▷ Protected methods | 15 | 15.96% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.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
There are no PNG files in this plugin