84% difficulty-taxomony

Code Review | Difficulty Taxonomy

WordPress plugin Difficulty Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: difficulty-taxomony
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: 16patsle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.43ms] Passed 4 tests

Server-side resources used by Difficulty Taxonomy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.65 ▲0.44
Dashboard /wp-admin3.33 ▲0.0253.08 ▲3.92
Posts /wp-admin/edit.php3.38 ▲0.0250.15 ▲0.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.14 ▼13.74
Media Library /wp-admin/upload.php3.25 ▲0.0233.99 ▼0.49
Difficulties /wp-admin/edit-tags.php?taxonomy=difficulty3.2435.38

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Difficulty Taxonomy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.25 ▼1.051.71 ▼0.1044.27 ▲4.48
Dashboard /wp-admin2,210 ▲225.91 ▲0.0496.64 ▼6.2539.42 ▼7.16
Posts /wp-admin/edit.php2,120 ▲312.01 ▲0.0437.61 ▲3.5332.21 ▼0.38
Add New Post /wp-admin/post-new.php1,546 ▲2718.25 ▼5.02618.06 ▼71.2652.92 ▲4.06
Media Library /wp-admin/upload.php1,386 ▼24.20 ▲0.0396.35 ▲0.0242.20 ▼4.08
Difficulties /wp-admin/edit-tags.php?taxonomy=difficulty1,2632.1326.0130.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× 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/difficulty-taxomony/difficulty-taxomony.php:41

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: difficulty, taxonomy, posts, sorting

difficulty-taxomony/difficulty-taxomony.php Passed 13 tests

The entry point to "Difficulty Taxonomy" version 1.0 is a PHP file that has certain tags in its header comment area
99 characters long description:
The Difficulty Taxonomy plugin adds a basic taxonomy for sorting posts into different difficulties.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1131543
PHP121030

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected