84% tivwp-demia-check-prerequisites

Code Review | TIVWP-DEMIA Check prerequisites

WordPress plugin TIVWP-DEMIA Check prerequisites scored84%from 54 tests.

About plugin

  • Plugin page: tivwp-demia-check...
  • Plugin version: 14.05.07
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: May 10, 2014
  • Latest release: Oct 11, 2014
  • Number of updates: 4
  • Update frequency: every 38.8 days
  • Top authors: tivnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /634 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼4.13ms] Passed 4 tests

An overview of server-side resources used by TIVWP-DEMIA Check prerequisites
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.20 ▲0.54
Dashboard /wp-admin3.31 ▲0.0145.62 ▼2.73
Posts /wp-admin/edit.php3.36 ▲0.0045.78 ▼3.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.15 ▼9.98
Media Library /wp-admin/upload.php3.23 ▲0.0034.28 ▼0.79

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

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

Browser metrics Passed 4 tests

Checking browser requirements for TIVWP-DEMIA Check prerequisites
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.19 ▼1.241.70 ▲0.0640.69 ▼2.29
Dashboard /wp-admin2,210 ▲255.83 ▲0.04105.94 ▲8.3340.50 ▼1.01
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0540.90 ▲4.3035.47 ▲1.38
Add New Post /wp-admin/post-new.php1,554 ▲3522.92 ▼0.14604.81 ▼70.1253.13 ▼11.15
Media Library /wp-admin/upload.php1,398 ▲104.33 ▲0.2598.49 ▼24.2742.20 ▼7.49

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
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 is_admin() in wp-content/plugins/tivwp-demia-check-prerequisites/tivwp-demia-check-prerequisites-main.php:2

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

tivwp-demia-check-prerequisites/tivwp-demia-check-prerequisites.php Passed 13 tests

The main PHP script in "TIVWP-DEMIA Check prerequisites" version 14.05.07 is automatically included on every request by WordPress
80 characters long description:
TIVWP Academia: This plugin will not function unless certain conditions are met.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin29 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP262025
Markdown1204

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 code1.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 functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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 files were detected