84% timeline-verite-shortcode

Code Review | VéritéCo Timeline

WordPress plugin VéritéCo Timeline scored84%from 54 tests.

About plugin

  • Plugin page: timeline-verite-s...
  • Plugin version: 0.9.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.3.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2012
  • Latest release: May 8, 2012
  • Number of updates: 50
  • Update frequency: every 0.4 days
  • Top authors: miguelpeixe (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,892 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.00MB] [CPU: ▼4.87ms] Passed 4 tests

Analyzing server-side resources used by VéritéCo Timeline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.70 ▼3.10
Dashboard /wp-admin3.31 ▲0.0142.96 ▼2.13
Posts /wp-admin/edit.php3.36 ▲0.0046.61 ▼6.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.92 ▼8.09
Media Library /wp-admin/upload.php3.23 ▲0.0036.57 ▲3.56

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for VéritéCo Timeline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲12213.98 ▼0.405.21 ▲2.8637.13 ▼6.59
Dashboard /wp-admin2,206 ▲185.87 ▲0.01107.34 ▼1.1445.17 ▲0.86
Posts /wp-admin/edit.php2,092 ▼02.01 ▲0.0240.33 ▼2.7236.07 ▲2.23
Add New Post /wp-admin/post-new.php1,668 ▲13523.12 ▲0.00673.14 ▲30.4452.52 ▼5.20
Media Library /wp-admin/upload.php1,388 ▲34.25 ▼0.0392.85 ▼7.7442.21 ▼3.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/timeline-verite-shortcode/verite-timeline.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: verite, stamen, shortcode, timeline, timelineveriteco...

timeline-verite-shortcode/verite-timeline.php 85% from 13 tests

The main PHP script in "VéritéCo Timeline" version 0.9.7 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("timeline-verite-shortcode.php" instead of "verite-timeline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin698 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS1700388
PHP12127152
Markdown129075
JavaScript13714849
PO File1101334

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/button-tinymce.png0.32KB0.34KB0.00%
css/themes/timeline-texture.png41.97KB44.06KB0.00%
css/themes/timeline-dark.png10.61KB5.02KB▼ 52.70%
css/timeline.png10.56KB4.88KB▼ 53.80%