84% kopa-nictitate-toolkit

Code Review | Kopa Nictitate Toolkit

WordPress plugin Kopa Nictitate Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: kopa-nictitate-to...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2014
  • Latest release: Sep 21, 2015
  • Number of updates: 5
  • Update frequency: every 83.2 days
  • Top authors: kopatheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /40,001 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
Installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▲1.20ms] Passed 4 tests

This is a short check of server-side resources used by Kopa Nictitate Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5052.71 ▲9.50
Dashboard /wp-admin3.79 ▲0.4962.09 ▲8.77
Posts /wp-admin/edit.php3.91 ▲0.5563.11 ▲6.16
Add New Post /wp-admin/post-new.php6.39 ▲0.50101.52 ▼14.19
Media Library /wp-admin/upload.php3.71 ▲0.4846.08 ▲4.04
Client Tags /wp-admin/edit-tags.php?taxonomy=client_tag&post_type=clients3.7147.16
Projects /wp-admin/edit-tags.php?taxonomy=portfolio_project&post_type=portfolio3.7144.28
Add New /wp-admin/post-new.php?post_type=clients3.8064.12
Add New /wp-admin/post-new.php?post_type=staffs3.8665.63
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio3.7145.77
All Items /wp-admin/edit.php?post_type=clients3.7648.31
Add New /wp-admin/post-new.php?post_type=portfolio3.8764.78
Service Categories /wp-admin/edit-tags.php?taxonomy=service_category&post_type=services3.7146.01
All Items /wp-admin/edit.php?post_type=portfolio3.7646.99
Testimonial Tags /wp-admin/edit-tags.php?taxonomy=testimonial_tag&post_type=testimonials3.7149.46

Server storage [IO: ▲0.11MB] [DB: ▲0.02MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kopa Nictitate Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲22214.36 ▼0.013.94 ▲1.9249.27 ▲2.78
Dashboard /wp-admin2,374 ▲1975.54 ▼0.1286.26 ▲0.1345.75 ▲5.72
Posts /wp-admin/edit.php2,279 ▲1792.01 ▲0.0036.20 ▼4.4138.30 ▲3.26
Add New Post /wp-admin/post-new.php1,677 ▲14223.27 ▲0.08587.41 ▼125.6466.86 ▲11.04
Media Library /wp-admin/upload.php1,582 ▲1854.08 ▼0.0597.48 ▼24.5646.15 ▼3.36
Client Tags /wp-admin/edit-tags.php?taxonomy=client_tag&post_type=clients1,4252.2627.2131.41
Projects /wp-admin/edit-tags.php?taxonomy=portfolio_project&post_type=portfolio1,4552.2530.6830.66
Add New /wp-admin/post-new.php?post_type=clients2,0073.7468.2234.66
Add New /wp-admin/post-new.php?post_type=staffs2,8197.23186.5476.32
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,4252.2627.1134.25
All Items /wp-admin/edit.php?post_type=clients1,2681.9730.7633.99
Add New /wp-admin/post-new.php?post_type=portfolio2,8028.07185.4859.27
Service Categories /wp-admin/edit-tags.php?taxonomy=service_category&post_type=services1,4552.1627.2131.39
All Items /wp-admin/edit.php?post_type=portfolio1,2651.9631.6831.74
Testimonial Tags /wp-admin/edit-tags.php?taxonomy=testimonial_tag&post_type=testimonials1,4282.1629.9536.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/client.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/options_client.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/service.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/staff.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/options_staff.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/kopa-nictitate-toolkit.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/options_service.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/kopa-nictitate-toolkit/kopa-shortcodes.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/options_portfolio.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-nictitate-toolkit/posttype/options_testimonial.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
There were no plugin tags found

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

Analyzing the main PHP file in "Kopa Nictitate Toolkit" version 1.0.2
88 characters long description:
A specific plugin use in Nictitate Theme to help you register post types and shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,771 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP12218481,183
JavaScript2060355
PO File1107329233

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
21 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/shortcodes/icons/alert.png3.32KB0.90KB▼ 72.94%
js/shortcodes/icons/one_fourth.png0.25KB0.19KB▼ 22.87%
js/shortcodes/icons/posts_popular.png0.43KB0.41KB▼ 5.44%
js/shortcodes/icons/contact_form.png0.67KB0.72KB0.00%
js/shortcodes/icons/youtube.png0.52KB0.32KB▼ 38.18%