74% traditores-in-one-year

Code Review | Traditores In-One-Year

WordPress plugin Traditores In-One-Year scored 74% from 54 tests.

About plugin

  • Plugin page: traditores-in-one...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2013
  • Latest release: Dec 30, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: thesolver.us (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,145 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲2.74ms] Passed 4 tests

Analyzing server-side resources used by Traditores In-One-Year
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0747.69 ▲3.60
Dashboard /wp-admin3.41 ▲0.1155.68 ▼0.44
Posts /wp-admin/edit.php3.53 ▲0.1756.15 ▲4.76
Add New Post /wp-admin/post-new.php6.03 ▲0.14103.37 ▲8.58
Media Library /wp-admin/upload.php3.34 ▲0.1138.67 ▲3.04
Traditores IOY /wp-admin/options-general.php?page=trad-ioy3.3136.90

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

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

Browser metrics Passed 4 tests

Traditores In-One-Year: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲4213.31 ▲0.201.92 ▼0.1045.22 ▼0.69
Dashboard /wp-admin2,212 ▲65.86 ▼0.05109.21 ▼2.9338.70 ▼3.80
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0139.75 ▲4.3435.47 ▲1.40
Add New Post /wp-admin/post-new.php6,469 ▲4,93623.07 ▼0.15857.57 ▲234.4352.76 ▲4.24
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0296.84 ▼10.2640.77 ▼6.41
Traditores IOY /wp-admin/options-general.php?page=trad-ioy1,6392.3248.9632.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/traditores-in-one-year/uninstall.php+12
    Undefined variable: trad_ioy_def_settings
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traditores-in-one-year/trad-ioy.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traditores-in-one-year/uninstall.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'trad_ioy' not found in wp-content/plugins/traditores-in-one-year/inc/trad_ioy_admin.class.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: free, content, simple

traditores-in-one-year/trad-ioy.php 92% from 13 tests

Analyzing the main PHP file in "Traditores In-One-Year" version 0.3
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("traditores-in-one-year.php" instead of "trad-ioy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,619 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
HTML510818
PHP59180601
JavaScript352104186
CSS23014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity33.50
▷ Minimum class complexity31.00
▷ Maximum class complexity36.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2692.86%
▷ Protected methods13.57%
▷ Private methods13.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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