Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼141.30ms] Passed 4 tests
This is a short check of server-side resources used by Gp post Like
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 35.64 ▲1.82 |
Dashboard /wp-admin | 3.09 ▲0.03 | 49.71 ▲7.00 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 46.81 ▲0.54 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 89.09 ▼563.92 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.61 ▼3.65 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Gp post Like
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲218 | 16.34 ▲0.77 | 11.79 ▼0.75 | 46.71 ▼1.69 |
Dashboard /wp-admin | 2,979 ▲48 | 5.93 ▼0.23 | 137.63 ▼47.51 | 127.62 ▲13.84 |
Posts /wp-admin/edit.php | 2,773 ▲37 | 2.72 ▼0.11 | 68.85 ▼1.12 | 88.73 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,696 ▲196 | 18.48 ▲0.01 | 393.59 ▲16.87 | 112.69 ▲4.71 |
Media Library /wp-admin/upload.php | 1,770 ▼37 | 5.04 ▲0.00 | 136.27 ▼21.17 | 130.10 ▲16.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-post-like/index.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Screenshot-1) image missing
gp-post-like/index.php 92% from 13 tests
Analyzing the main PHP file in "Gp post Like" version 1.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gp-post-like.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin195 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 31 | 148 |
JavaScript | 1 | 5 | 3 | 26 |
CSS | 1 | 4 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview 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.17 |
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 | 11 | |
▷ Named functions | 11 | 100.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
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 |
images/like-icon.png | 0.45KB | 0.62KB | 0.00% |
images/liked-icon.png | 1.55KB | 1.37KB | ▼ 11.96% |