84% climate-on-crete

Code Review | Climate on Crete by Ostheimer

WordPress plugin Climate on Crete by Ostheimer scored84%from 54 tests.

About plugin

  • Plugin page: climate-on-crete
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2013
  • Latest release: May 19, 2019
  • Number of updates: 27
  • Update frequency: every 84.9 days
  • Top authors: helpstring (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,155 total downloads

Benchmarks

Plugin footprint 83% from 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: ▲0.03MB] [CPU: ▼11.57ms] Passed 4 tests

An overview of server-side resources used by Climate on Crete by Ostheimer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0227.21 ▼15.08
Dashboard /wp-admin3.36 ▲0.0246.78 ▼14.19
Posts /wp-admin/edit.php3.41 ▲0.0641.54 ▲2.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.86 ▼10.40
Media Library /wp-admin/upload.php3.28 ▲0.0635.26 ▼6.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Climate on Crete by Ostheimer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14213.54 ▼0.849.07 ▲7.0642.37 ▼0.44
Dashboard /wp-admin2,203 ▲155.84 ▼0.08107.03 ▼10.3339.63 ▼6.10
Posts /wp-admin/edit.php2,089 ▼02.12 ▲0.1037.26 ▼3.9531.87 ▼2.30
Add New Post /wp-admin/post-new.php1,533 ▼923.18 ▲4.87592.81 ▼28.1849.77 ▼7.94
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0497.17 ▼33.4241.23 ▼5.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/climate-on-crete/climate-on-crete.php

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 96% from 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
6 plugin tags: celsius, climate, climate table, crete, fahrenheit...

climate-on-crete/climate-on-crete.php 92% from 13 tests

This is the main PHP file of "Climate on Crete by Ostheimer" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)

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
There were no executable files found in this plugin726 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2502287
PHP12935214
CSS12722137
PO File1383988

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/regentage.png1.59KB0.71KB▼ 55.24%
images/wassertemperatur.png1.91KB1.41KB▼ 25.92%
images/min-temperatur.png1.40KB0.38KB▼ 72.94%
images/max-temperatur.png1.40KB0.38KB▼ 72.92%
images/select.png0.16KB0.22KB0.00%