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.01MB] [CPU: ▼11.77ms] Passed 4 tests
Server-side resources used by Onscribe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.81 ▼26.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.33 ▼2.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.66 ▼5.86 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.73 ▼12.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.97 ▼1.95 |
Onscribe /wp-admin/options-general.php?page=onscribe-admin | 3.19 | 34.25 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Onscribe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.37 ▼0.86 | 2.23 ▲0.09 | 41.19 ▼2.37 |
Dashboard /wp-admin | 2,217 ▲32 | 5.86 ▲0.00 | 109.76 ▼11.79 | 37.97 ▼7.47 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.01 | 39.69 ▲3.84 | 34.68 ▼0.04 |
Add New Post /wp-admin/post-new.php | 6,266 ▲4,733 | 26.11 ▲3.04 | 858.10 ▲227.08 | 74.88 ▲17.52 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.22 ▼0.02 | 100.42 ▼7.39 | 43.62 ▼3.48 |
Onscribe /wp-admin/options-general.php?page=onscribe-admin | 805 | 1.73 | 27.20 | 29.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=onscribe-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=onscribe-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/onscribe/embed.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/onscribe/settings.php:238
- > PHP Notice
Undefined variable: product in wp-content/plugins/onscribe/embed.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/onscribe/settings.php:238
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Screenshot of the Settings > Onscribe page, where you can add your products), #2 (Highlight of the shortcode generator meta box and a sample of the shortcode itself), #3 (An example of the actual subscription buttons in a post)
onscribe/onscribe.php Passed 13 tests
The entry point to "Onscribe" version 0.1.1 is a PHP file that has certain tags in its header comment area
74 characters long description:
Simple integration for Onscribe. Adds subscription buttons to any webpage.
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 plugin376 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 85 | 145 | 295 |
JavaScript | 1 | 12 | 27 | 68 |
CSS | 1 | 4 | 1 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
3 PNG files occupy 0.42MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 86.28KB | 33.47KB | ▼ 61.20% |
screenshot-2.png | 189.60KB | 85.35KB | ▼ 54.98% |
screenshot-3.png | 152.22KB | 69.73KB | ▼ 54.19% |