90% canny-armadillo

Code Review | Canny Armadillo

WordPress plugin Canny Armadillo scored90%from 54 tests.

About plugin

  • Plugin page: canny-armadillo
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2023
  • Latest release: Oct 11, 2023
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: cannyarmadillo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /13 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Canny Armadillo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.46 ▼0.12
Dashboard /wp-admin3.35 ▲0.0548.05 ▼1.95
Posts /wp-admin/edit.php3.40 ▲0.0450.09 ▼5.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.08 ▼5.49
Media Library /wp-admin/upload.php3.27 ▲0.0435.94 ▲1.63
Canny Armadillo /wp-admin/options-general.php?page=canny-armadillo3.2433.01

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
Canny_Armadillo_plugin
widget_theysaidso_widget
widget_recent-comments
Canny_Armadillo_send_user_data
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Canny Armadillo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.48 ▼0.201.61 ▼0.2842.21 ▼4.87
Dashboard /wp-admin2,213 ▲255.91 ▲0.88106.11 ▼1.4938.13 ▼2.06
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0339.22 ▲3.2235.04 ▼2.55
Add New Post /wp-admin/post-new.php1,540 ▲2623.49 ▲5.97680.36 ▲77.0564.97 ▲13.30
Media Library /wp-admin/upload.php1,395 ▲104.29 ▲0.06101.74 ▼5.2943.76 ▲2.09
Canny Armadillo /wp-admin/options-general.php?page=canny-armadillo8362.0624.5027.20

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 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • Canny_Armadillo_plugin
    • widget_theysaidso_widget
    • can_compress_scripts
    • Canny_Armadillo_send_user_data
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: analytics, tracking, canny armadillo

canny-armadillo/canny-armadillo.php 92% from 13 tests

The main PHP file in "Canny Armadillo" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected212 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24217212

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin