89% prime-timeline

Code Review | Prime Timeline

WordPress plugin Prime Timeline scored 89% from 54 tests.

About plugin

  • Plugin page: prime-timeline
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1
  • WordPress version: 5.8.1
  • First release: Apr 22, 2015
  • Latest release: Feb 28, 2019
  • Number of updates: 13
  • Update frequency: every 122.2 days
  • Top authors: tajima_taso (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,645 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.39MB] [CPU: ▼135.27ms] Passed 4 tests

A check of server-side resources used by Prime Timeline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲1.3666.60 ▲42.12
Dashboard /wp-admin4.57 ▲1.5187.06 ▲50.49
Posts /wp-admin/edit.php4.60 ▲1.4990.84 ▲59.80
Add New Post /wp-admin/post-new.php7.46 ▲2.02151.69 ▼670.60
Media Library /wp-admin/upload.php4.20 ▲1.2062.71 ▲36.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Prime Timeline
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /80,099 ▲76,49820.67 ▲4.6232.31 ▲26.0173.87 ▼2.39
Dashboard /wp-admin43,014 ▲40,1186.52 ▲0.34219.47 ▲76.64176.14 ▼3.94
Posts /wp-admin/edit.php41,079 ▲38,3394.05 ▲0.83100.05 ▲34.41139.17 ▼0.52
Add New Post /wp-admin/post-new.php30,411 ▲26,66816.21 ▼2.22406.17 ▼21.63164.08 ▼11.24
Media Library /wp-admin/upload.php32,618 ▲30,8665.50 ▲0.04180.10 ▲36.24188.19 ▼3.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/prime-timeline/tpl/ps_tr.php
    • > /wp-content/plugins/prime-timeline/tpl/ps_table_footer.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: val in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/prime-timeline/tpl/ps_panel.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 58
    • > PHP Notice
      Undefined variable: val in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 50
    • > PHP Notice
      Undefined variable: val in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/prime-timeline/tpl/ps_tr.php on line 50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/prime-timeline/tpl/ps_table_header.php:1

User-side errors Passed 1 test

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

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
4 plugin tags: study, debug, tools, develop

prime-timeline/prime-timeline.php Passed 13 tests

The main file in "Prime Timeline" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
This plugin analyze the execution status of WordPress for debugging, performance check, and study.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected547 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP84935376
CSS18066
PO File1202260
JavaScript19045

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity18.00
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin