82% azurecurve-timelines

Code Review | azurecurve Timelines

WordPress plugin azurecurve Timelines scored 82% from 54 tests.

About plugin

  • Plugin page: azurecurve-timelines
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 5.8.1
  • First release: Jul 31, 2018
  • Latest release: Dec 6, 2018
  • Number of updates: 10
  • Update frequency: every 12.8 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 576 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.23MB] [CPU: ▼149.54ms] Passed 4 tests

Analyzing server-side resources used by azurecurve Timelines
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2336.88 ▲13.10
Dashboard /wp-admin3.18 ▲0.1246.06 ▲0.10
Posts /wp-admin/edit.php3.23 ▲0.1247.96 ▲2.60
Add New Post /wp-admin/post-new.php4.16 ▼1.2747.42 ▼600.52
Media Library /wp-admin/upload.php3.12 ▲0.1231.23 ▼0.33
Add New /wp-admin/post-new.php?post_type=timeline-entry3.0533.62
Timeline /wp-admin/edit-tags.php?taxonomy=timeline&post_type=timeline-entry3.1228.72
Timelines /wp-admin/admin.php?page=azc-t3.0931.02
Timelines /wp-admin/edit.php?post_type=timeline-entry3.1634.16
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.0927.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
azc_t

Browser metrics Passed 4 tests

A check of browser resources used by azurecurve Timelines
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲19315.72 ▲0.268.52 ▼1.1451.12 ▲2.45
Dashboard /wp-admin3,050 ▲1135.94 ▼0.00158.08 ▲12.16146.51 ▲34.14
Posts /wp-admin/edit.php2,820 ▲842.70 ▲0.0171.88 ▲5.1493.63 ▼10.80
Add New Post /wp-admin/post-new.php1,738 ▲5518.36 ▼0.42370.91 ▲3.64109.31 ▲0.88
Media Library /wp-admin/upload.php1,832 ▲255.00 ▼0.04127.49 ▼38.90138.25 ▲11.43
Add New /wp-admin/post-new.php?post_type=timeline-entry3,5629.20223.67176.07
Timeline /wp-admin/edit-tags.php?taxonomy=timeline&post_type=timeline-entry1,8352.5057.0179.12
Timelines /wp-admin/admin.php?page=azc-t1,2462.0957.9373.70
Timelines /wp-admin/edit.php?post_type=timeline-entry1,5402.6259.1375.45
Plugins /wp-admin/admin.php?page=azc-plugin-menus1,1672.0557.1474.68

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 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=timeline-entry
    • > Notice in wp-content/plugins/azurecurve-timelines/azurecurve-timelines.php+404
    Undefined index: azc_t_meta_box_nonce
    • > GET request to /wp-admin/post-new.php?post_type=timeline-entry
    • > Warning in wp-content/plugins/azurecurve-timelines/azurecurve-timelines.php+395
    Illegal string offset 'timeline-link'
    • > GET request to /wp-admin/post-new.php?post_type=timeline-entry
    • > Notice in wp-content/plugins/azurecurve-timelines/azurecurve-timelines.php+395
    Uninitialized string offset: 0

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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-timelines/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-timelines/includes/menu.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=azc-plugin-menus
    • > Network (severe)
    wp-content/plugins/azurecurve-timelines/images/timelines-16x16.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Plugin settings page.) image missing
Please take inspiration from this readme.txt

azurecurve-timelines/azurecurve-timelines.php 85% from 13 tests

Analyzing the main PHP file in "azurecurve Timelines" version 2.0.2
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path folder does not exist ("/languages")

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
No dangerous file extensions were detected641 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP38155549
CSS291192

PHP code Passed 2 tests

An overview 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.55
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Timelines-16x16.png0.51KB0.48KB▼ 4.25%
images/link.png0.33KB0.42KB0.00%
images/Timelines-32x32.png1.10KB0.99KB▼ 9.71%
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%