84% resolution-toolkit

Code Review | Resolution Toolkit

WordPress plugin Resolution Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: resolution-toolkit
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Jan 16, 2017
  • Number of updates: 11
  • Update frequency: every 44.2 days
  • Top authors: KOPATHEME Support (81.82%)kopasoft (27.27%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.51ms] Passed 4 tests

A check of server-side resources used by Resolution Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.53 ▲4.56
Dashboard /wp-admin3.31 ▲0.0047.98 ▼9.57
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▼2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.64 ▼12.65
Media Library /wp-admin/upload.php3.23 ▲0.0039.07 ▲2.58

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Resolution Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.48 ▼0.152.05 ▲0.0437.99 ▼11.23
Dashboard /wp-admin2,224 ▲305.89 ▲0.93102.67 ▼10.9241.90 ▼2.87
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0433.25 ▼2.7136.94 ▲1.63
Add New Post /wp-admin/post-new.php1,545 ▲1423.24 ▼0.13626.12 ▼61.8452.08 ▼3.39
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.02105.74 ▲2.5748.44 ▲6.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • 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)
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resolution-toolkit/resolution-toolkit.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resolution-toolkit/inc/widgets/social/widget-flickr.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Resolution_Toolkit' not found in wp-content/plugins/resolution-toolkit/inc/meta-boxes/featured-content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resolution-toolkit/inc/widgets/social/widget-twitter.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: tweet

resolution-toolkit/resolution-toolkit.php Passed 13 tests

The main PHP script in "Resolution Toolkit" version 1.0.3 is automatically included on every request by WordPress
80 characters long description:
A specific plugin use in Resolution Lite Theme to help you display tweet widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected541 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP512090508
JavaScript261133

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.25
▷ Minimum class complexity3.00
▷ Maximum class complexity19.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected