Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/swiftypress/SwiftyPress_Plugin.php+40
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▼0.41MB] [CPU: ▼15.29ms] Passed 4 tests
Analyzing server-side resources used by SwiftyPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 39.54 ▲0.62 |
Dashboard /wp-admin | 3.62 ▲0.27 | 49.43 ▼10.88 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 49.38 ▲4.11 |
Add New Post /wp-admin/post-new.php | 3.43 ▼2.46 | 37.75 ▼54.99 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 39.44 ▲5.71 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
SwiftyPress_Plugin_iOSID |
SwiftyPress_Plugin__installed |
db_upgraded |
SwiftyPress_Plugin_AndroidID |
theysaidso_admin_options |
SwiftyPress_Plugin__version |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SwiftyPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.28 ▼0.27 | 1.80 ▼0.25 | 40.30 ▲2.68 |
Dashboard /wp-admin | 2,214 ▲37 | 5.64 ▲0.06 | 86.50 ▼6.34 | 36.22 ▼9.89 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.05 | 36.56 ▼1.29 | 30.01 ▼6.86 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 18.27 ▼4.74 | 613.10 ▼3.43 | 91.25 ▲34.91 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.16 ▲0.07 | 98.06 ▼4.66 | 41.02 ▼3.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- SwiftyPress_Plugin_iOSID
- SwiftyPress_Plugin__installed
- SwiftyPress_Plugin_AndroidID
- widget_recent-posts
- widget_recent-comments
- SwiftyPress_Plugin__version
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/swiftypress/theme/page-mobile-comments.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: postid in wp-content/plugins/swiftypress/theme/page-mobile-comments.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SwiftyPress_REST_V3' not found in wp-content/plugins/swiftypress/SwiftyPress_REST_V3_Posts_Controller.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swiftypress/swiftypress.php:78
- > PHP Fatal error
Uncaught Error: Class 'SwiftyPress_REST_V5' not found in wp-content/plugins/swiftypress/SwiftyPress_REST_V5_Modified_Controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'SwiftyPress_REST_V5' not found in wp-content/plugins/swiftypress/SwiftyPress_REST_V5_Media_Controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'SwiftyPress_REST_V3' not found in wp-content/plugins/swiftypress/SwiftyPress_REST_V3_Payloads_Controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'SwiftyPress_REST_V5' not found in wp-content/plugins/swiftypress/SwiftyPress_REST_V5_Post_Controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'SwiftyPress_REST_V5' not found in wp-content/plugins/swiftypress/SwiftyPress_REST_V5_Author_Controller.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
swiftypress/swiftypress.php Passed 13 tests
Analyzing the main PHP file in "SwiftyPress" version 1.5.9
45 characters long description:
Mobile app framework for your WordPress blog.
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 plugin1,799 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 446 | 694 | 1,789 |
JavaScript | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 75.42% |
▷ Protected methods | 29 | 24.58% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 4 | 25.00% |
▷ Anonymous functions | 12 | 75.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin