89% wp-livre-blanc

Code Review | Wordpress Livre Blanc

WordPress plugin Wordpress Livre Blanc scored 89% from 54 tests.

About plugin

  • Plugin page: wp-livre-blanc
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 27, 2017
  • Latest release: Apr 28, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: olyos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 804 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Wordpress Livre Blanc
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.13 ▼4.67
Dashboard /wp-admin3.33 ▲0.0247.42 ▼10.32
Posts /wp-admin/edit.php3.38 ▲0.0249.62 ▲5.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.65 ▲3.89
Media Library /wp-admin/upload.php3.25 ▲0.0247.73 ▲13.99
Add new white paper /wp-admin/admin.php?page=livreblanc3.3238.10
White papers list /wp-admin/admin.php?page=livreblanc-list3.2837.86
/wp-admin/admin.php?page=livreblanc-participant-list3.2731.38
Informations /wp-admin/admin.php?page=livreblanc-infos3.2530.64

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: 3 new tables, 6 new options
New tables
wp_olyos_livreblanc_download
wp_olyos_livreblanc
wp_olyos_livreblanc_user
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Livre Blanc
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.25 ▼0.996.05 ▲4.2939.76 ▼10.06
Dashboard /wp-admin2,245 ▲574.91 ▼1.1496.19 ▼16.7479.09 ▲30.67
Posts /wp-admin/edit.php2,131 ▲422.01 ▲0.0538.47 ▲2.3733.92 ▼2.10
Add New Post /wp-admin/post-new.php1,697 ▲16322.57 ▼0.46624.58 ▼59.4551.40 ▼9.56
Media Library /wp-admin/upload.php1,421 ▲364.27 ▼0.0398.08 ▲2.1372.00 ▲26.84
Add new white paper /wp-admin/admin.php?page=livreblanc1,8206.57138.58138.63
White papers list /wp-admin/admin.php?page=livreblanc-list1,0091.8033.7334.46
/wp-admin/admin.php?page=livreblanc-participant-list1,0741.7626.0024.64
Informations /wp-admin/admin.php?page=livreblanc-infos1,0161.7626.7641.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: livre blanc, plugin

wp-livre-blanc/olyos-livre-blanc.php 85% from 13 tests

The main PHP script in "Wordpress Livre Blanc" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-livre-blanc.php" instead of "olyos-livre-blanc.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,638 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP1422975947
CSS27617387
PO File17077171
HTML12034133

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity9.00
▷ Maximum class complexity15.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods514.29%
▷ Public methods2880.00%
▷ Protected methods00.00%
▷ Private methods720.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon_small_olyos.png61.59KB1.03KB▼ 98.33%
img/twitter.png0.72KB0.53KB▼ 26.62%
img/icon_olybop.png1.41KB1.17KB▼ 17.33%
img/icon.png0.38KB0.43KB0.00%
img/logo.png3.42KB2.14KB▼ 37.45%