74% emplois-informatique

Code Review | Emplois Informatique

WordPress plugin Emplois Informatique scored 74% from 54 tests.

About plugin

  • Plugin page: emplois-informatique
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0
  • WordPress version: 6.3.1
  • First release: Oct 23, 2018
  • Latest release: Dec 11, 2018
  • Number of updates: 5
  • Update frequency: every 9.8 days
  • Top authors: p3xouille (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 730 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.67MB] [CPU: ▼52.38ms] Passed 4 tests

Analyzing server-side resources used by Emplois Informatique
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.32 ▼1.144.92 ▼36.23
Dashboard /wp-admin2.34 ▼0.976.48 ▼45.88
Posts /wp-admin/edit.php2.34 ▼1.029.17 ▼34.96
Add New Post /wp-admin/post-new.php2.34 ▼3.557.26 ▼92.43
Media Library /wp-admin/upload.php2.34 ▼0.896.13 ▼26.35

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_emploisinformatique_recherche_widget
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Emplois Informatique
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6513.22 ▼1.162.04 ▲0.0439.20 ▼3.54
Dashboard /wp-admin2,223 ▲345.90 ▲0.88106.67 ▼14.0443.19 ▲0.80
Posts /wp-admin/edit.php2,103 ▲142.02 ▼0.0339.14 ▲4.7234.19 ▼2.70
Add New Post /wp-admin/post-new.php1,541 ▲2223.47 ▲0.25687.66 ▼11.8955.15 ▼2.57
Media Library /wp-admin/upload.php1,402 ▲144.25 ▲0.0399.93 ▼4.1543.33 ▼2.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the emploisinformatique_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_emploisinformatique_recherche_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/emplois-informatique/emplois-informatique.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Stable tag: No value
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

emplois-informatique/emplois-informatique.php Passed 13 tests

The principal PHP file in "Emplois Informatique" v. 1.0 is loaded by WordPress automatically on each request
89 characters long description:
Affichez toutes les offres d'emploi du secteur de l'informatique sur votre site Internet.

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
There were no executable files found in this plugin704 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11049666
CSS110038

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/emplois-informatique.png3.49KB3.62KB0.00%