Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.41ms] Passed 4 tests
Analyzing server-side resources used by Pinecast WordPress Sync
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.96 ▼4.67 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.13 ▼3.84 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.36 ▼7.48 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.09 ▼13.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.29 ▼1.34 |
Pinecast /wp-admin/options-general.php?page=pinecast | 3.28 | 36.25 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Pinecast WordPress Sync: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.28 ▼0.08 | 1.67 ▼0.02 | 42.23 ▲2.48 |
Dashboard /wp-admin | 2,212 ▲35 | 5.52 ▼0.09 | 87.07 ▼4.14 | 38.04 ▼8.91 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.01 ▼0.03 | 34.57 ▼9.37 | 37.35 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.19 ▲0.02 | 594.67 ▼28.47 | 53.51 ▼11.76 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.27 ▲0.08 | 96.65 ▼7.02 | 42.45 ▼0.78 |
Pinecast /wp-admin/options-general.php?page=pinecast | 1,125 | 2.06 | 25.39 | 29.72 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant PINECAST_FILE - assumed 'PINECAST_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/pinecast-wp-sync/pinecast.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function Pinecast\\load_plugin_textdomain() in wp-content/plugins/pinecast-wp-sync/pinecast.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function Pinecast\\load_plugin_textdomain() in wp-content/plugins/pinecast-wp-sync/pinecast/pinecast.php:72
- > PHP Warning
Use of undefined constant PINECAST_FILE - assumed 'PINECAST_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/pinecast-wp-sync/pinecast/pinecast.php on line 39
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
4 plugin tags: pinecast, sync, jsonfeed, podcast
pinecast-wp-sync/plugin.php 85% from 13 tests
The main PHP script in "Pinecast WordPress Sync" version 1.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pinecast-wp-sync.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected19,500 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 7 | 0 | 0 | 17,167 |
PHP | 30 | 560 | 1,013 | 1,838 |
JavaScript | 7 | 30 | 14 | 214 |
CSS | 3 | 2 | 2 | 139 |
Sass | 1 | 21 | 2 | 138 |
Markdown | 1 | 2 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
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.36 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 24 | 16.90% |
▷ Public methods | 127 | 89.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 10.56% |
Functions | 36 | |
▷ Named functions | 26 | 72.22% |
▷ Anonymous functions | 10 | 27.78% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin