Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.93ms] Passed 4 tests
This is a short check of server-side resources used by Post-to-Post Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.20 ▲1.74 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.57 ▼19.08 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.10 ▼2.82 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.43 ▼13.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.32 ▼0.65 |
Post2Post /wp-admin/options-general.php?page=easy-post-to-post-links/post-to-post-links.php | 3.24 | 35.53 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Post-to-Post Links
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.14 ▼1.15 | 1.56 ▼0.11 | 42.49 ▼4.04 |
Dashboard /wp-admin | 2,228 ▲31 | 5.85 ▼0.01 | 101.49 ▼6.17 | 39.85 ▼2.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.04 | 39.28 ▲1.80 | 35.54 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,548 ▲12 | 23.13 ▲0.01 | 646.42 ▲3.93 | 57.50 ▼12.33 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.22 ▼0.07 | 105.77 ▲0.16 | 42.90 ▼5.16 |
Post2Post /wp-admin/options-general.php?page=easy-post-to-post-links/post-to-post-links.php | 994 | 2.04 | 30.32 | 36.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-post-to-post-links/tests/bootstrap.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-post-to-post-links/tests/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/easy-post-to-post-links/tests/bootstrap.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
7 plugin tags: links, post, shortcode, coffee2code, posts...
easy-post-to-post-links/post-to-post-links.php 85% from 13 tests
Analyzing the main PHP file in "Post-to-Post Links" version 4.2
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-post-to-post-links.php" instead of "post-to-post-links.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,101 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 251 | 529 | 1,051 |
Bourne Shell | 1 | 7 | 3 | 22 |
Markdown | 1 | 14 | 0 | 14 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 54.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 1 | 50.00% |
Methods | 89 | |
▷ Static methods | 4 | 4.49% |
▷ Public methods | 74 | 83.15% |
▷ Protected methods | 13 | 14.61% |
▷ Private methods | 2 | 2.25% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |