Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.66ms] Passed 4 tests
An overview of server-side resources used by Kinetise API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.51 ▼2.29 |
Dashboard /wp-admin | 3.44 ▲0.14 | 44.05 ▼4.73 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 45.28 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.88 ▼3.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.17 ▼0.26 |
Reference /wp-admin/admin.php?page=kinetise-api-reference | 3.43 | 30.91 |
Tutorial /wp-admin/admin.php?page=kinetise-api-tutorial | 3.36 | 30.89 |
Server storage [IO: ▲2.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Kinetise API
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.59 ▼1.16 | 1.73 ▼0.13 | 43.42 ▼1.12 |
Dashboard /wp-admin | 2,234 ▲46 | 4.87 ▲0.02 | 97.15 ▼19.90 | 83.72 ▲41.38 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.01 ▲0.02 | 38.88 ▲3.51 | 34.79 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 23.05 ▲5.65 | 649.39 ▼3.21 | 60.20 ▲7.53 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.20 ▲0.01 | 94.15 ▼0.17 | 72.36 ▲32.09 |
Reference /wp-admin/admin.php?page=kinetise-api-reference | 2,729 | 2.07 | 24.61 | 63.85 |
Tutorial /wp-admin/admin.php?page=kinetise-api-tutorial | 1,142 | 2.02 | 26.06 | 74.12 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 101× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/Tests/RequestTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/Tests/RedirectResponseTest.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\File\\MimeType\\MimeTypeGuesserInterface' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesser.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\File\\MimeType\\ExtensionGuesserInterface' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/File/MimeType/ExtensionGuesser.php:26
- > PHP Fatal error
Uncaught Error: Class 'KinetiseApi\\Controller\\AbstractController' not found in wp-content/plugins/kinetise/src/Kinetise/Controller/CategoriesController.php:12
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/BinaryFileResponse.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBagInterface' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/kinetise/vendor/symfony/http-foundation/Tests/RequestStackTest.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=kinetise-api-reference
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=kinetise-api-reference 1140:29 Uncaught TypeError: Cannot read properties of undefined (reading 'addEventListener')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Plugin Name: Please specify the plugin name on the first line (
=== kinetise ===
) - Donate link: Please fix this invalid url: ""
kinetise/kinetise.php Passed 13 tests
This is the main PHP file of "Kinetise API" version 2.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Provide API for your blog to build apps by kinetise.com using wordpress blog
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
There were no executable files found in this plugin40,303 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 29,116 | 16,863 | 39,869 |
Markdown | 2 | 28 | 0 | 150 |
CSS | 1 | 31 | 1 | 146 |
JSON | 3 | 0 | 0 | 112 |
XML | 1 | 3 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 8.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 3 | 2.26% |
▷ Concrete classes | 130 | 97.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,295 | |
▷ Static methods | 40 | 3.09% |
▷ Public methods | 1,183 | 91.35% |
▷ Protected methods | 77 | 5.95% |
▷ Private methods | 35 | 2.70% |
Functions | 38 | |
▷ Named functions | 4 | 10.53% |
▷ Anonymous functions | 34 | 89.47% |
Constants | 96 | |
▷ Global constants | 4 | 4.17% |
▷ Class constants | 92 | 95.83% |
▷ Public constants | 92 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.70MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-original-64x64_default.png | 2.79KB | 1.88KB | ▼ 32.45% |
images/tutorial/3_f.png | 37.77KB | 12.47KB | ▼ 67.00% |
images/kinetise-logo.png | 0.39KB | 0.48KB | 0.00% |
images/tutorial/2_e.png | 23.69KB | 13.30KB | ▼ 43.88% |
images/tutorial/4_b.png | 16.90KB | 10.66KB | ▼ 36.91% |