84% gentime

Code Review | GenTime: Inspect page generation time

WordPress plugin GenTime: Inspect page generation time scored 84% from 54 tests.

About plugin

  • Plugin page: gentime
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Aug 18, 2023
  • Number of updates: 25
  • Update frequency: every 116.1 days
  • Top authors: Cybr (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 2,255 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.80ms] Passed 4 tests

Analyzing server-side resources used by GenTime: Inspect page generation time
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.21 ▼2.98
Dashboard /wp-admin3.31 ▲0.0145.06 ▼1.48
Posts /wp-admin/edit.php3.36 ▲0.0143.95 ▲1.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.02 ▲1.90
Media Library /wp-admin/upload.php3.23 ▲0.0033.68 ▲0.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GenTime: Inspect page generation time
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲6413.73 ▲0.491.95 ▲0.1943.41 ▼0.69
Dashboard /wp-admin2,223 ▲145.88 ▲0.8598.23 ▼14.3739.09 ▼3.27
Posts /wp-admin/edit.php2,103 ▲321.99 ▼0.0134.65 ▲0.7933.11 ▼0.65
Add New Post /wp-admin/post-new.php1,521 ▼1217.87 ▼5.51687.27 ▲33.9460.85 ▲4.93
Media Library /wp-admin/upload.php1,405 ▲174.21 ▲0.0597.60 ▼12.5542.62 ▼4.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 add_action() in wp-content/plugins/gentime/gentime.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
8 plugin tags: load, time, speed, generation, admin bar...

gentime/gentime.php Passed 13 tests

Analyzing the main PHP file in "GenTime: Inspect page generation time" version 1.1.0
66 characters long description:
GenTime shows the page generation time in the WordPress admin bar.

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
No dangerous file extensions were detected44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1105344

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin