78% kinetise

Code Review | Kinetise API

WordPress plugin Kinetise API scored 78% from 54 tests.

About plugin

  • Plugin page: kinetise
  • Plugin version: 2.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.0
  • WordPress version: 6.3.1
  • First release: May 30, 2016
  • Latest release: Aug 4, 2016
  • Number of updates: 21
  • Update frequency: every 3.6 days
  • Top authors: kinetise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,327 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.51 ▼2.29
Dashboard /wp-admin3.44 ▲0.1444.05 ▼4.73
Posts /wp-admin/edit.php3.49 ▲0.1445.28 ▲0.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.88 ▼3.37
Media Library /wp-admin/upload.php3.30 ▲0.0734.17 ▼0.26
Reference /wp-admin/admin.php?page=kinetise-api-reference3.4330.91
Tutorial /wp-admin/admin.php?page=kinetise-api-tutorial3.3630.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.59 ▼1.161.73 ▼0.1343.42 ▼1.12
Dashboard /wp-admin2,234 ▲464.87 ▲0.0297.15 ▼19.9083.72 ▲41.38
Posts /wp-admin/edit.php2,117 ▲282.01 ▲0.0238.88 ▲3.5134.79 ▲1.16
Add New Post /wp-admin/post-new.php1,544 ▲3023.05 ▲5.65649.39 ▼3.2160.20 ▲7.53
Media Library /wp-admin/upload.php1,416 ▲254.20 ▲0.0194.15 ▼0.1772.36 ▲32.09
Reference /wp-admin/admin.php?page=kinetise-api-reference2,7292.0724.6163.85
Tutorial /wp-admin/admin.php?page=kinetise-api-tutorial1,1422.0226.0674.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

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: ""
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP14529,11616,86339,869
Markdown2280150
CSS1311146
JSON300112
XML13026

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 code0.18
Average class complexity8.13
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces27
Interfaces10
Traits0
Classes133
▷ Abstract classes32.26%
▷ Concrete classes13097.74%
▷ Final classes00.00%
Methods1,295
▷ Static methods403.09%
▷ Public methods1,18391.35%
▷ Protected methods775.95%
▷ Private methods352.70%
Functions38
▷ Named functions410.53%
▷ Anonymous functions3489.47%
Constants96
▷ Global constants44.17%
▷ Class constants9295.83%
▷ Public constants92100.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
FileSize - originalSize - compressedSavings
images/icon-original-64x64_default.png2.79KB1.88KB▼ 32.45%
images/tutorial/3_f.png37.77KB12.47KB▼ 67.00%
images/kinetise-logo.png0.39KB0.48KB0.00%
images/tutorial/2_e.png23.69KB13.30KB▼ 43.88%
images/tutorial/4_b.png16.90KB10.66KB▼ 36.91%