Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/issuu-magazine-display/imd.php+11
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.83MB] [CPU: ▼58.82ms] Passed 4 tests
A check of server-side resources used by ISSUU Magazine Display
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 4.30 ▼37.80 |
Dashboard /wp-admin | 2.17 ▼1.13 | 5.90 ▼59.17 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 5.70 ▼48.42 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 5.16 ▼89.90 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 8.59 ▼28.31 |
ISSUU Magazine Display /wp-admin/options-general.php?page=issuu-setting-admin | 2.18 | 5.69 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ISSUU Magazine Display
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.79 ▲0.42 | 1.51 ▼1.13 | 37.67 ▼10.69 |
Dashboard /wp-admin | 2,213 ▲28 | 4.84 ▼1.00 | 103.85 ▼16.87 | 38.39 ▼21.21 |
Posts /wp-admin/edit.php | 2,072 ▼17 | 2.00 ▼0.03 | 36.08 ▼5.23 | 31.85 ▼6.26 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.14 ▲0.18 | 618.63 ▼24.22 | 67.33 ▲2.72 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.07 | 97.72 ▼3.40 | 40.70 ▼3.26 |
ISSUU Magazine Display /wp-admin/options-general.php?page=issuu-setting-admin | 903 | 2.17 | 22.33 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/issuu-magazine-display/imd.php+11
Constant WP_DEBUG already defined
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=issuu-setting-admin
- > Notice in wp-content/plugins/issuu-magazine-display/imd.php+11
Constant WP_DEBUG already defined
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=issuu-setting-admin
- > Notice in wp-content/plugins/issuu-magazine-display/imd.php+543
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=issuu-setting-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=issuu-setting-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 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/issuu-magazine-display/imd.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Magazine layout on website.), #2 (Settings screen. Enter your api key here.), #3 (Entering shortcode into a page.)
- Plugin Name: Please specify the plugin name on the first line (
=== issuu-magazine-display ===
)
issuu-magazine-display/imd.php 92% from 13 tests
The main PHP script in "ISSUU Magazine Display" version 1.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("issuu-magazine-display.php" instead of "imd.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,354 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 213 | 202 | 942 |
PHP | 1 | 121 | 107 | 347 |
HTML | 1 | 21 | 2 | 65 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
14 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/blueprint-css/plugins/buttons/icons/key.png | 0.44KB | 0.41KB | ▼ 8.13% |
assets/blueprint-css/plugins/link-icons/icons/feed.png | 0.67KB | 0.90KB | 0.00% |
assets/blueprint-css/plugins/link-icons/icons/doc.png | 0.76KB | 0.92KB | 0.00% |
assets/blueprint-css/plugins/link-icons/icons/external.png | 45.75KB | 0.11KB | ▼ 99.77% |
assets/blueprint-css/plugins/link-icons/icons/im.png | 0.72KB | 0.74KB | 0.00% |