Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.11ms] Passed 4 tests
Server-side resources used by Pinterest Site Verification plugin using Meta Tag
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 36.99 ▼0.13 |
Dashboard /wp-admin | 3.08 ▲0.03 | 46.00 ▲0.39 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.36 ▼2.04 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.79 ▼558.60 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.40 ▲0.35 |
Pinterest Site Verification /wp-admin/options-general.php?page=Pinterest-meta-tag-verification | 3.00 | 30.10 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Pinterest Site Verification plugin using Meta Tag
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲232 | 16.22 ▲0.49 | 15.10 ▲5.22 | 46.50 ▲2.36 |
Dashboard /wp-admin | 2,980 ▲46 | 6.04 ▲0.01 | 153.70 ▼28.09 | 114.16 ▲1.83 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.73 ▲0.02 | 69.75 ▲3.36 | 89.34 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,623 ▲29 | 21.33 ▲2.58 | 282.95 ▼130.46 | 104.09 ▼5.29 |
Media Library /wp-admin/upload.php | 1,817 ▼5 | 5.05 ▲0.01 | 161.35 ▼6.24 | 109.65 ▼11.25 |
Pinterest Site Verification /wp-admin/options-general.php?page=Pinterest-meta-tag-verification | 1,105 | 2.49 | 64.09 | 79.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pinterest-site-verification/PinterestMetaTagSiteVerification.php:129
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 your attention:
- Screenshots: Please add an image for screenshot #4 (Copy the whole code.)
- Plugin Name: You should set the name of your plugin on the first line (
=== pinterest-site-verification ===
)
pinterest-site-verification/PinterestMetaTagSiteVerification.php 92% from 13 tests
The primary PHP file in "Pinterest Site Verification plugin using Meta Tag" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pinterest-site-verification.php" instead of "PinterestMetaTagSiteVerification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin139 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 24 | 126 |
JavaScript | 1 | 0 | 1 | 13 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 30.03KB | 16.46KB | ▼ 45.19% |
screenshot-3.png | 30.51KB | 16.26KB | ▼ 46.72% |
screenshot-1.png | 3.68KB | 1.76KB | ▼ 52.26% |