Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.27ms] Passed 4 tests
This is a short check of server-side resources used by issuuPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.54 ▼2.27 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.80 ▼0.03 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 43.13 ▼5.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.79 ▼9.20 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.59 ▲1.57 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for issuuPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.35 ▼0.01 | 2.06 ▲0.41 | 45.93 ▲6.71 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.05 | 92.49 ▲2.13 | 43.48 ▲4.37 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 36.07 ▲0.76 | 35.67 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,532 ▼3 | 23.41 ▲5.25 | 592.57 ▼4.11 | 45.93 ▼22.29 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▲0.04 | 94.89 ▼9.00 | 42.76 ▼2.11 |
issuuPress /wp-admin/issuupress.php | 26 | 0.42 | 0.08 | 13.49 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/issuupress/issuupress.php:49
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/issuupress.php
- > Network (severe)
wp-admin/issuupress.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Mockup of the Issuu viewer with the list of pdfs underneath, fetched via the Issuu API.), #2 (The Settings screen.)
issuupress/issuupress.php Passed 13 tests
The primary PHP file in "issuuPress" version 1.3.2 is used by WordPress to initiate all plugin functionality
89 characters long description:
Displays your Issuu catalog of PDF files in your wordpress posts/pages using a shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected532 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 126 | 83 | 510 |
CSS | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 42.12KB | 15.48KB | ▼ 63.25% |
screenshot-2.png | 119.93KB | 75.18KB | ▼ 37.31% |