84% eorzea-time

Code Review | Eorzea Time

WordPress plugin Eorzea Time scored84%from 54 tests.

About plugin

  • Plugin page: eorzea-time
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2014
  • Latest release: Aug 19, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: scui2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Eorzea Time
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.14 ▲0.41
Dashboard /wp-admin3.34 ▲0.0448.53 ▼2.99
Posts /wp-admin/edit.php3.39 ▲0.0447.86 ▲0.63
Add New Post /wp-admin/post-new.php5.92 ▲0.04100.57 ▲5.61
Media Library /wp-admin/upload.php3.26 ▲0.0335.10 ▼3.35

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Eorzea Time
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.58 ▼0.9711.69 ▲9.8246.56 ▲8.26
Dashboard /wp-admin2,195 ▲215.62 ▼0.0491.13 ▲0.6341.21 ▼1.87
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0539.04 ▲0.1135.78 ▼0.42
Add New Post /wp-admin/post-new.php1,531 ▼623.12 ▲4.97646.49 ▲9.8860.43 ▼0.77
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.0699.11 ▼12.1742.29 ▼2.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_eorzeatime
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/eorzea-time/inc/shortcodes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eorzea-time/eorzea-time.php:110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/eorzea-time/inc/actionhooks.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: widget

eorzea-time/eorzea-time.php 92% from 13 tests

"Eorzea Time" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin445 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35839331
JavaScript19167
CSS110047

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.75
▷ Minimum class complexity2.00
▷ Maximum class complexity24.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods520.00%
▷ Public methods25100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/moon1.png3.99KB2.54KB▼ 36.41%
images/moon0.png3.50KB2.43KB▼ 30.56%
images/moon5.png4.94KB3.06KB▼ 38.02%
images/moon2.png4.49KB2.81KB▼ 37.29%
images/moon3.png4.89KB3.08KB▼ 36.95%