Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▲3.80ms] Passed 4 tests
Server-side resources used by WP.com Cross-Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.43 ▲1.26 |
Dashboard /wp-admin | 3.39 ▲0.09 | 58.60 ▲5.35 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.19 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 102.92 ▲8.19 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 42.16 ▲8.20 |
WP.com X-Post /wp-admin/options-general.php?page=wpcom-crosspost | 3.29 | 34.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP.com Cross-Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.75 ▲0.40 | 2.01 ▲0.15 | 42.17 ▼0.75 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▼0.03 | 85.25 ▼14.59 | 40.16 ▼3.21 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.00 ▲0.03 | 35.56 ▼2.21 | 36.74 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.16 ▲0.18 | 660.22 ▼9.16 | 54.76 ▼3.86 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.19 ▼0.06 | 100.53 ▼24.43 | 44.19 ▼4.60 |
WP.com X-Post /wp-admin/options-general.php?page=wpcom-crosspost | 895 | 2.00 | 23.57 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: cross, wordpresscom, categories, cross-posts, blog...
wpcom-crosspost/wpcom-crosspost.php 92% from 13 tests
Analyzing the main PHP file in "WP.com Cross-Post" version 1.0.0
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin336 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 87 | 183 | 336 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin