84% csstimeline

Code Review | csstimeline

WordPress plugin csstimeline scored84%from 54 tests.

About plugin

  • Plugin page: csstimeline
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: Feb 24, 2016
  • Latest release: Sep 23, 2016
  • Number of updates: 12
  • Update frequency: every 39.9 days
  • Top authors: poetaster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,272 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼11.37ms] Passed 4 tests

This is a short check of server-side resources used by csstimeline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0627.03 ▼13.50
Dashboard /wp-admin3.32 ▼0.0349.81 ▼13.35
Posts /wp-admin/edit.php3.37 ▲0.0145.83 ▼1.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.10 ▼17.36
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▼0.32

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for csstimeline
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼0.991.68 ▼0.0042.94 ▲2.94
Dashboard /wp-admin2,206 ▲175.85 ▲0.90108.73 ▲3.9242.96 ▲2.60
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0235.70 ▲2.0131.36 ▼4.59
Add New Post /wp-admin/post-new.php1,545 ▲2623.08 ▼0.05620.72 ▼44.7350.32 ▼6.07
Media Library /wp-admin/upload.php1,379 ▼64.20 ▲0.01101.95 ▼8.7742.93 ▼4.92

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 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/csstimeline/csstimeline.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Basic Appearance 1), #2 (Basic Appearance 2)
You can take inspiration from this readme.txt

csstimeline/csstimeline.php Passed 13 tests

The principal PHP file in "csstimeline" v. 1.0 is loaded by WordPress automatically on each request
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected463 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS23329358
PHP1112558
Markdown125047

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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
4 PNG files occupy 0.22MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png82.12KB28.31KB▼ 65.53%
assets/screenshot-1.png28.81KB11.34KB▼ 60.65%
assets/screenshot-2.png82.12KB28.31KB▼ 65.53%
screenshot-1.png28.81KB11.34KB▼ 60.65%