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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.37ms] Passed 4 tests
Server-side resources used by PDF Viewer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.59 ▼4.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.15 ▼3.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.56 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.35 ▼13.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.16 ▲0.30 |
Server storage [IO: ▲14.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 369 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Viewer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.28 ▼1.06 | 4.66 ▲2.67 | 40.59 ▼4.20 |
Dashboard /wp-admin | 2,203 ▲18 | 5.79 ▲0.90 | 100.86 ▼19.16 | 38.04 ▼9.59 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.02 | 40.01 ▲1.61 | 36.28 ▲2.76 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 18.49 ▼4.64 | 629.39 ▼22.14 | 77.32 ▲24.24 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.08 | 94.25 ▼2.80 | 41.68 ▼3.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pdf-viewer/pdf-viewer.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #2 in pdf-viewer/assets to your readme.txt
pdf-viewer/pdf-viewer.php Passed 13 tests
The principal PHP file in "PDF Viewer" v. 1.1.0 is loaded by WordPress automatically on each request
26 characters long description:
HTML5-compliant PDF Viewer
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin97,365 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 793 | 384 | 93,741 |
CSS | 2 | 404 | 48 | 2,702 |
HTML | 1 | 48 | 16 | 369 |
SVG | 50 | 0 | 0 | 291 |
PHP | 2 | 51 | 69 | 262 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stable/web/images/shadow.png | 0.26KB | 0.35KB | 0.00% |