Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Compile error in wp-content/plugins/lazy-pinner/includes/pinit.php+40
Redefinition of parameter $token
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.14ms] Passed 4 tests
An overview of server-side resources used by Lazy Pinner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.23 ▲2.07 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.00 ▼15.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.07 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.63 ▼16.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.17 ▼0.68 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Lazy Pinner: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.09 ▼0.37 | 1.68 ▲0.23 | 44.33 ▼1.28 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.04 | 85.40 ▼0.37 | 37.08 ▼4.89 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.05 | 33.23 ▼1.14 | 34.49 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.10 ▼0.03 | 659.48 ▼25.92 | 52.97 ▼1.04 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▲0.01 | 101.91 ▼0.52 | 42.94 ▼1.54 |
Uninstaller [IO: ▲0.48MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following itemsThe uninstall procedure has failed, leaving 7 options in the database
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/lazy-pinner/includes/pinit.php+40
Redefinition of parameter $token
- Incomplete uninstall procedure, leaving 14 files (0.48MB) in the plugin directory
- (new file) images/pass.png
- (new file) images/url.png
- (new file) images/key.png
- (new file) images/icon.png
- (new file) includes/auth.php
- (new file) images/questionMarkIcon_SMALL.jpg
- (new file) includes/admin.php
- (new file) images/boards.png
- (new file) images/email.png
- (new file) images/user.png
- ...
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× 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/lazy-pinner/lazypinner.php:76
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/lazy-pinner/includes/admin.php on line 262
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/lazy-pinner/includes/log.php:28
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/lazy-pinner/includes/log.php on line 27
- > PHP Fatal error
Redefinition of parameter $token in wp-content/plugins/lazy-pinner/includes/pinit.php on line 40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== lazy-pinner ===
)
lazy-pinner/lazypinner.php 92% from 13 tests
The principal PHP file in "Lazy Pinner" v. 2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("lazy-pinner.php" instead of "lazypinner.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 plugin447 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 75 | 97 | 447 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 10 | |
▷ Named functions | 10 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.45MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/url.png | 44.15KB | 13.67KB | ▼ 69.03% |
images/boards.png | 114.03KB | 23.64KB | ▼ 79.27% |
images/pass.png | 121.62KB | 48.43KB | ▼ 60.18% |
images/email.png | 121.95KB | 48.54KB | ▼ 60.19% |
images/user.png | 41.02KB | 12.47KB | ▼ 69.59% |