10% kopa-forceful-toolkit

Code Review | Kopa Forcefull Toolkit

WordPress plugin Kopa Forcefull Toolkit scored10%from 54 tests.

About plugin

  • Plugin page: kopa-forceful-too...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 16, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kopatheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /13,700 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/kopa-forceful-toolkit/kopa-widgets.php+302
    Methods with the same name as their class will not be constructors in a future version of PHP; KopaAwesomeWeatherWidget has a deprecated constructor

Server metrics [RAM: ▼1.62MB] [CPU: ▼52.62ms] Passed 4 tests

A check of server-side resources used by Kopa Forcefull Toolkit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.37 ▼1.095.85 ▼34.83
Dashboard /wp-admin2.39 ▼0.918.26 ▼38.32
Posts /wp-admin/edit.php2.39 ▼0.976.39 ▼44.71
Add New Post /wp-admin/post-new.php2.39 ▼3.506.60 ▼92.60
Media Library /wp-admin/upload.php2.39 ▼0.847.06 ▼30.14

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_kopa_awesome_weather_widget
widget_awesome_weather_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Kopa Forcefull Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.78 ▼0.799.25 ▲7.6442.87 ▼1.59
Dashboard /wp-admin2,198 ▲185.65 ▲0.0286.64 ▼8.9343.75 ▲1.63
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0135.78 ▼5.9035.76 ▼3.35
Add New Post /wp-admin/post-new.php6,240 ▲4,70325.95 ▲7.73946.02 ▲301.6562.37 ▼5.19
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.09105.74 ▲4.6946.10 ▲1.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/kopa-forceful-toolkit/kopa-widgets.php+302
    Methods with the same name as their class will not be constructors in a future version of PHP; KopaAwesomeWeatherWidget has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • db_upgraded
    • widget_kopa_awesome_weather_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_awesome_weather_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-post-rating.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-forceful-toolkit.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-forceful-toolkit/kopa-enqueue.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (http://kopatheme.com/demo/forcefull/light/wp-content/uploads/2014/05/weather.png), #2 (http://kopatheme.com/demo/forcefull/light/wp-content/uploads/2014/05/shortcode.png), #3 (http://kopatheme.com/demo/forcefull/light/wp-content/uploads/2014/05/rating.png)
You can take inspiration from this readme.txt

kopa-forceful-toolkit/kopa-forceful-toolkit.php Passed 13 tests

The entry point to "Kopa Forcefull Toolkit" version 1.0.0 is a PHP file that has certain tags in its header comment area
115 characters long description:
A specific plugin use in Forceful Theme to generate shortcodes, add specific widgets and allow user rate the posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,129 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP63571451,413
JavaScript236132603
CSS3289113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity18.33
▷ Minimum class complexity9.00
▷ Maximum class complexity24.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods952.94%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
20 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/shortcodes/icons/contact_form.png0.67KB0.72KB0.00%
js/shortcodes/icons/two_third.png0.30KB0.22KB▼ 26.40%
js/shortcodes/icons/audio.png0.96KB1.17KB0.00%
js/shortcodes/icons/youtube.png0.52KB0.32KB▼ 38.18%
js/shortcodes/icons/toggle.png0.45KB0.41KB▼ 8.26%