84% zeitstrahler

Code Review | zeitstrahler

WordPress plugin zeitstrahler scored84%from 54 tests.

About plugin

  • Plugin page: zeitstrahler
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: May 16, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: wudi96 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /995 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by zeitstrahler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0622.56 ▼17.77
Dashboard /wp-admin3.32 ▲0.0141.54 ▼9.96
Posts /wp-admin/edit.php3.37 ▲0.0144.45 ▼0.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.01 ▼11.11
Media Library /wp-admin/upload.php3.24 ▲0.0132.49 ▼1.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for zeitstrahler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.221.90 ▲0.1943.84 ▼3.38
Dashboard /wp-admin2,206 ▲185.76 ▲0.8993.79 ▼20.5836.89 ▼12.07
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0342.03 ▲4.3637.26 ▲5.82
Add New Post /wp-admin/post-new.php1,533 ▼023.07 ▼0.08669.08 ▼51.5354.25 ▲0.53
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.00105.35 ▼2.2540.22 ▼5.48

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 were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/zeitstrahler/zeitstrahler.php:14

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: style, shortcode, simple

zeitstrahler/zeitstrahler.php Passed 13 tests

"zeitstrahler" version 0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
A simple plugin to style your content as a timeline with a few shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin302 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1422209
PHP1102354
JavaScript14039

PHP code Passed 2 tests

This is a very shot 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.39
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

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