78% iteras

Code Review | ITERAS

WordPress plugin ITERAS scored78%from 54 tests.

About plugin

  • Plugin page: iteras
  • Plugin version: 1.5.1
  • PHP compatiblity: 4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2014
  • Latest release: May 8, 2023
  • Number of updates: 80
  • Update frequency: every 40.2 days
  • Top authors: iteras (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by ITERAS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.76 ▼2.75
Dashboard /wp-admin3.34 ▲0.0447.86 ▲2.34
Posts /wp-admin/edit.php3.39 ▲0.0450.95 ▲1.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.68 ▼18.67
Media Library /wp-admin/upload.php3.26 ▲0.0335.08 ▲1.37
ITERAS /wp-admin/options-general.php?page=iteras3.3039.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
iteras_settings
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ITERAS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲16313.60 ▼0.595.95 ▲3.6437.77 ▼1.97
Dashboard /wp-admin2,207 ▲255.82 ▲0.80104.64 ▲5.4538.50 ▼6.68
Posts /wp-admin/edit.php2,106 ▲172.00 ▲0.0135.45 ▼5.8331.35 ▼3.86
Add New Post /wp-admin/post-new.php6,233 ▲4,70526.27 ▲7.75926.85 ▲323.8759.53 ▲6.34
Media Library /wp-admin/upload.php1,395 ▲134.25 ▲0.09103.35 ▲5.5446.51 ▲4.45
ITERAS /wp-admin/options-general.php?page=iteras1,7136.63143.0138.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/iteras/public/views/box.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/iteras/admin/views/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/iteras/admin/views/post-meta-box.php:3

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 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

iteras/iteras.php Passed 13 tests

The primary PHP file in "ITERAS" version 1.5.1 is used by WordPress to initiate all plugin functionality
115 characters long description:
Integration with ITERAS, a cloud-based state-of-the-art system for managing subscriptions/memberships and payments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,387 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP9256133960
PO File16074192
JavaScript33459170
CSS310265

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity59.50
▷ Minimum class complexity36.00
▷ Maximum class complexity83.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods52
▷ Static methods1019.23%
▷ Public methods4484.62%
▷ Protected methods00.00%
▷ Private methods815.38%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin