84% everkinetic

Code Review | Exercise Images by Everkinetic

WordPress plugin Exercise Images by Everkinetic scored84%from 54 tests.

About plugin

  • Plugin page: everkinetic
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2013
  • Latest release: Jul 24, 2014
  • Number of updates: 12
  • Update frequency: every 18.7 days
  • Top authors: gpriday (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.14ms] Passed 4 tests

Server-side resources used by Exercise Images by Everkinetic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.46 ▼1.01
Dashboard /wp-admin3.34 ▲0.0445.79 ▲0.96
Posts /wp-admin/edit.php3.39 ▲0.0349.36 ▲2.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.26 ▲3.70
Media Library /wp-admin/upload.php3.26 ▲0.0335.00 ▲2.13

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Exercise Images by Everkinetic: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.59 ▼1.004.49 ▲2.6742.15 ▼2.78
Dashboard /wp-admin2,206 ▲215.86 ▲0.0695.70 ▼8.9839.04 ▼5.15
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0540.36 ▼2.9035.28 ▲1.22
Add New Post /wp-admin/post-new.php1,521 ▲723.21 ▲5.73606.57 ▼50.2256.91 ▲4.21
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0196.43 ▼0.0740.41 ▼3.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/everkinetic/everkinetic.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: images, content, exercise

everkinetic/everkinetic.php Passed 13 tests

This is the main PHP file of "Exercise Images by Everkinetic" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Add exercise images to your posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin274 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP12859138
CSS216074
JavaScript316162

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/icon.png1.88KB0.86KB▼ 54.25%