Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-publisher/ftp-class.php+98
Methods with the same name as their class will not be constructors in a future version of PHP; ftp has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.78ms] Passed 4 tests
This is a short check of server-side resources used by WP Publisher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.55 ▼9.87 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.95 ▼18.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.41 ▼2.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.93 ▼7.74 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.42 ▲4.26 |
WP Publisher /wp-admin/options-general.php?page=wp-publisher-options | 3.18 | 32.63 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
wp_publisher_outlandish_sync_secret |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Publisher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.20 ▼1.10 | 1.54 ▼0.06 | 40.39 ▼3.62 |
Dashboard /wp-admin | 2,228 ▲21 | 4.91 ▼0.03 | 104.09 ▼2.86 | 39.27 ▼4.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▼0.01 | 37.25 ▼2.05 | 35.45 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.37 ▲5.81 | 681.29 ▲53.69 | 46.86 ▼9.07 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.18 ▼0.04 | 111.78 ▲10.01 | 49.23 ▲3.93 |
WP Publisher /wp-admin/options-general.php?page=wp-publisher-options | 982 | 2.07 | 26.08 | 32.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- wp_publisher_outlandish_sync_secret
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wp-publisher-options
- > Warning in wp-content/plugins/wp-publisher/wp-publisher-admin.php+19
session_start(): Cannot start session when headers already sent
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-publisher-options
- > Notice in wp-content/plugins/wp-publisher/wp-publisher-admin.php+25
Undefined variable: _SESSION
- > GET request to /wp-admin/options-general.php?page=wp-publisher-options
- > Notice in wp-content/plugins/wp-publisher/wp-publisher-admin.php+51
Undefined variable: html
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-publisher-options
- > Notice in wp-content/plugins/wp-publisher/wp-publisher-admin.php+98
Undefined variable: wp_publisher_port
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-publisher/wp-publisher.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
wp-publisher/wp-publisher.php Passed 13 tests
The main PHP script in "WP Publisher" version 0.1.1 is automatically included on every request by WordPress
36 characters long description:
sync two WordPress site by one click
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
Good job! No executable or dangerous file extensions detected1,335 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 320 | 314 | 1,243 |
PO File | 1 | 31 | 33 | 92 |
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.34 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.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 | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 58 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin