84% meteoart

Code Review | Meteo

WordPress plugin Meteo scored84%from 54 tests.

About plugin

  • Plugin page: meteoart
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Oct 12, 2019
  • Latest release: Jul 16, 2021
  • Number of updates: 8
  • Update frequency: every 80.5 days
  • Top authors: meteoart (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /5,898 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.09MB] [CPU: ▼5.26ms] Passed 4 tests

Analyzing server-side resources used by Meteo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.52 ▼2.38
Dashboard /wp-admin3.39 ▲0.0843.77 ▼8.46
Posts /wp-admin/edit.php3.50 ▲0.1448.16 ▲3.75
Add New Post /wp-admin/post-new.php5.99 ▲0.1080.64 ▼12.10
Media Library /wp-admin/upload.php3.31 ▲0.0837.84 ▲1.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_meteo_widget
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Meteo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.62 ▼1.035.93 ▲4.0242.78 ▼2.49
Dashboard /wp-admin2,207 ▲165.85 ▲0.9798.07 ▼19.6239.73 ▼7.19
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0134.91 ▼0.1631.62 ▼1.21
Add New Post /wp-admin/post-new.php1,518 ▼1523.44 ▲0.07686.50 ▼10.2660.97 ▲10.31
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.0295.60 ▼2.9742.41 ▼3.86

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_meteo_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/meteoart/admin/partials/meteo-admin-display.php
    • > /wp-content/plugins/meteoart/public/partials/meteo-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: prvisions, meteo widget, france, meteo, french...

meteoart/meteo.php 85% from 13 tests

The primary PHP file in "Meteo" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("meteoart.php" instead of "meteo.php")
  • 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

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
No dangerous file extensions were detected748 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12145542400
JavaScript23962186
CSS2214162

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.88
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin