Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/pretty-pinterest-pins/pretty-pinterest-pins.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Pretty_Pinterest_Pins has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼54.49ms] Passed 4 tests
Analyzing server-side resources used by Pretty Pinterest Pins
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.50 ▼44.41 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.32 ▼47.85 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 5.86 ▼38.68 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.28 ▼87.00 |
Media Library /wp-admin/upload.php | 2.11 ▼1.11 | 6.33 ▼30.50 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_pretty_pinterest_pins |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Pretty Pinterest Pins
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.52 ▼0.85 | 1.79 ▼0.35 | 42.30 ▼7.62 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.89 | 97.89 ▼17.72 | 39.90 ▼3.41 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 37.38 ▼2.81 | 35.32 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.35 ▲0.08 | 680.63 ▼21.51 | 59.12 ▼4.73 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.02 | 109.67 ▲8.56 | 47.46 ▲4.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/pretty-pinterest-pins/pretty-pinterest-pins.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Pretty_Pinterest_Pins has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_pretty_pinterest_pins
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pretty-pinterest-pins/pretty-pinterest-pins.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% 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 to be fixed:
- Screenshots: These screenshots do not have images: #1 (The widget showing 3 pins and all the options enabled), #2 (The settings interface is easy to use and straightforward)
pretty-pinterest-pins/pretty-pinterest-pins.php Passed 13 tests
The main file in "Pretty Pinterest Pins" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Display your latest pins from Pinterest in your sidebar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin179 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 18 | 179 |
PHP code Passed 2 tests
Analyzing 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.19 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin