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.22MB] [CPU: ▼154.69ms] Passed 4 tests
Server-side resources used by APT Rich Snippets - Get rich snippets for your site on Google
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.11 | 31.03 ▼4.53 |
Dashboard /wp-admin | 3.20 ▲0.14 | 44.90 ▼2.71 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 44.09 ▼0.77 |
Add New Post /wp-admin/post-new.php | 4.18 ▼1.25 | 47.03 ▼610.65 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 35.44 ▼0.86 |
APT Rich Snippets /wp-admin/options-general.php?page=apt-rich-snippets/aptmicrodata.php | 3.11 | 30.34 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
aptmicrodata_text |
aptmicrodata_border |
aptmicrodata_width |
aptmicrodata_background |
aptmicrodata_display |
aptmicrodata_link |
aptmicrodata_padding |
Browser metrics Passed 4 tests
An overview of browser requirements for APT Rich Snippets - Get rich snippets for your site on Google
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.89 ▲0.38 | 11.13 ▲2.43 | 45.19 ▼2.52 |
Dashboard /wp-admin | 2,972 ▲35 | 5.91 ▼0.03 | 164.00 ▲9.51 | 115.26 ▲9.07 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 66.92 ▼9.58 | 104.78 ▲16.07 |
Add New Post /wp-admin/post-new.php | 1,968 ▲285 | 24.21 ▲5.45 | 385.43 ▼12.58 | 118.49 ▲14.08 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▼0.02 | 162.90 ▼6.40 | 124.39 ▲10.88 |
APT Rich Snippets /wp-admin/options-general.php?page=apt-rich-snippets/aptmicrodata.php | 1,243 | 2.05 | 58.89 | 75.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- aptmicrodata_link
- aptmicrodata_padding
- aptmicrodata_width
- aptmicrodata_border
- aptmicrodata_text
- aptmicrodata_background
- aptmicrodata_display
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apt-rich-snippets/output.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apt-rich-snippets/output.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: smartphone, iphone, tablet, mobile, publish...
apt-rich-snippets/aptmicrodata.php 92% from 13 tests
The principal PHP file in "APT Rich Snippets - Get rich snippets for your site on Google" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("apt-rich-snippets.php" instead of "aptmicrodata.php")
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
No dangerous file extensions were detected922 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 192 | 28 | 894 |
JavaScript | 1 | 19 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
star_half_24.png | 1.34KB | 1.13KB | ▼ 15.19% |
star_24.png | 1.30KB | 1.12KB | ▼ 13.69% |