Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.80ms] Passed 4 tests
This is a short check of server-side resources used by Cross-Network posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.58 ▼12.97 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.77 ▼1.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.12 ▼11.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.65 ▼13.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.90 ▼0.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cross-Network posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼0.78 | 4.94 ▲1.95 | 44.85 ▼11.04 |
Dashboard /wp-admin | 2,206 ▲18 | 5.06 ▼0.84 | 106.07 ▼10.91 | 44.47 ▲4.28 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 36.27 ▼5.53 | 34.95 ▼7.76 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.36 ▲0.13 | 637.14 ▼22.49 | 76.22 ▲9.44 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.03 | 102.25 ▼20.00 | 43.87 ▼3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- 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
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/cross-network-posts/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/cross-network-posts/cnp.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
cross-network-posts/cnp.php 85% from 13 tests
Analyzing the main PHP file in "Cross-Network posts" version 2.0
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cross-network-posts.php" instead of "cnp.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin517 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 78 | 95 | 458 |
JavaScript | 1 | 4 | 0 | 59 |
PHP code Passed 2 tests
This is a short overview 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.48 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 7 | 63.64% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cnp-icon.png | 0.58KB | 0.57KB | ▼ 2.36% |