Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.36MB] [CPU: ▼20.19ms] Passed 4 tests
Server-side resources used by PxFinder-Box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 5.03 ▼39.19 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.45 ▼16.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.70 ▼4.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.27 ▼20.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.47 ▲2.67 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PxFinder-Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.39 ▼0.89 | 8.16 ▲6.18 | 43.65 ▲1.20 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.22 | 88.26 ▼2.45 | 38.95 ▼3.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 32.54 ▼5.33 | 34.25 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.30 ▲0.22 | 652.91 ▲36.01 | 59.94 ▲10.89 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▼0.01 | 107.81 ▲1.98 | 45.00 ▲1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pxfinder-box/pxfinder-box.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Smartphone [screenshot-2.jpg])
pxfinder-box/pxfinder-box.php Passed 13 tests
The main PHP file in "PxFinder-Box" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
20 characters long description:
Simple image viewer.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin54 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 10 | 20 |
CSS | 1 | 12 | 0 | 16 |
SVG | 1 | 0 | 0 | 13 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.69MB with 1.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot1.png | 1,254.78KB | 316.16KB | ▼ 74.80% |
screenshot2.png | 476.02KB | 117.73KB | ▼ 75.27% |