Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.51ms] Passed 4 tests
A check of server-side resources used by Prevent Landscape Rotation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.41 ▼7.55 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.23 ▲2.35 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 55.33 ▲6.40 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.93 ▼9.60 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.70 ▲4.77 |
Prevent Landscape Rotation /wp-admin/options-general.php?page=prevent-landscape-rotation/public/admin/adminpage.php | 3.26 | 34.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Prevent Landscape Rotation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲241 | 13.85 ▼0.51 | 12.78 ▲11.01 | 45.95 ▲3.27 |
Dashboard /wp-admin | 2,212 ▲24 | 5.91 ▲1.05 | 95.26 ▼12.38 | 40.03 ▼5.63 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▲0.01 | 38.57 ▼2.21 | 33.78 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,547 ▲4 | 18.54 ▲0.26 | 611.38 ▲8.03 | 58.33 ▲12.35 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.22 ▼0.01 | 97.27 ▼4.43 | 43.09 ▼1.13 |
Prevent Landscape Rotation /wp-admin/options-general.php?page=prevent-landscape-rotation/public/admin/adminpage.php | 1,122 | 2.36 | 69.91 | 30.16 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/prevent-landscape-rotation/public/apj-functions.php
- > /wp-content/plugins/prevent-landscape-rotation/public/admin/adminpage.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
- Screenshots: A description for screenshot #3 is required in prevent-landscape-rotation/assets to your readme.txt
prevent-landscape-rotation/prevent-landscape-rotation.php Passed 13 tests
Analyzing the main PHP file in "Prevent Landscape Rotation" version 2.0
44 characters long description:
Prevent Landscape Rotation On Mobile Devices
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
Good job! No executable or dangerous file extensions detected225 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 29 | 89 | 218 |
JavaScript | 3 | 2 | 11 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
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 | 13 | 100.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/landscape-pic.png | 1.84KB | 1.85KB | 0.00% |