79% cot-tackle

Code Review | Cot Tackle

WordPress plugin Cot Tackle scored79%from 54 tests.

About plugin

  • Plugin page: cot-tackle
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Jan 30, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: iam00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /479 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.14MB] [CPU: ▼4.89ms] Passed 4 tests

Server-side resources used by Cot Tackle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.36 ▼21.09
Dashboard /wp-admin3.43 ▲0.1351.81 ▲3.29
Posts /wp-admin/edit.php3.55 ▲0.1952.00 ▲4.71
Add New Post /wp-admin/post-new.php6.02 ▲0.1484.71 ▼3.85
Media Library /wp-admin/upload.php3.36 ▲0.1340.13 ▲2.11
Project Categories /wp-admin/edit-tags.php?taxonomy=projects-category&post_type=projects3.3530.75
All Projects /wp-admin/edit.php?post_type=projects3.4038.10
Add New Project /wp-admin/post-new.php?post_type=projects3.4961.69
All Employees /wp-admin/edit.php?post_type=employees3.4040.50
Add New Employee /wp-admin/post-new.php?post_type=employees3.4950.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Cot Tackle
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15214.48 ▼0.261.99 ▼0.3138.66 ▼15.70
Dashboard /wp-admin2,273 ▲854.83 ▼1.03115.12 ▲8.7642.99 ▲1.88
Posts /wp-admin/edit.php2,158 ▲662.04 ▼0.0041.63 ▲6.1838.70 ▲2.80
Add New Post /wp-admin/post-new.php1,595 ▲5323.54 ▲5.28611.97 ▲4.8253.58 ▼23.90
Media Library /wp-admin/upload.php1,458 ▲734.30 ▲0.0896.22 ▼5.4242.93 ▼3.30
Project Categories /wp-admin/edit-tags.php?taxonomy=projects-category&post_type=projects1,3262.3131.6835.19
All Projects /wp-admin/edit.php?post_type=projects1,1281.9431.4232.19
Add New Project /wp-admin/post-new.php?post_type=projects2,4127.61190.4269.62
All Employees /wp-admin/edit.php?post_type=employees1,1281.9430.5930.84
Add New Employee /wp-admin/post-new.php?post_type=employees2,3617.76167.1356.03

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cot-tackle/cot-tackle.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cot-tackle/inc/post-type/post-type-projects.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cot-tackle/inc/post-type/post-type-employees.php:73

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: custom post types, cot theme, custom fields

cot-tackle/cot-tackle.php Passed 13 tests

"Cot Tackle" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
Extended feature for Cot theme.

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 detected333 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP889101333

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.33
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected