72% lexiqueagency

Code Review | lexiqueAgency

WordPress plugin lexiqueAgency scored72%from 54 tests.

About plugin

  • Plugin page: lexiqueagency
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 13, 2013
  • Latest release: Jul 25, 2013
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: amineoujda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.91ms] Passed 4 tests

A check of server-side resources used by lexiqueAgency
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.62 ▼5.59
Dashboard /wp-admin3.41 ▲0.1147.19 ▼2.76
Posts /wp-admin/edit.php3.53 ▲0.1751.25 ▼2.19
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.60 ▼1.08
Media Library /wp-admin/upload.php3.34 ▲0.1134.43 ▼0.44
Glossary Option /wp-admin/options-general.php?page=slug-agency-lexique3.2831.31
Lexiques /wp-admin/edit.php?post_type=lexique_agency3.3847.43
Add new Lexique /wp-admin/post-new.php?post_type=lexique_agency3.4549.15

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

lexiqueAgency: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲19713.85 ▼0.518.28 ▲6.4041.12 ▼2.65
Dashboard /wp-admin2,232 ▲445.82 ▲0.98106.85 ▼3.5340.43 ▼5.54
Posts /wp-admin/edit.php2,127 ▲352.00 ▼0.0139.52 ▼0.2538.87 ▼1.00
Add New Post /wp-admin/post-new.php1,380 ▼15316.91 ▼6.32522.61 ▼154.6573.24 ▲17.44
Media Library /wp-admin/upload.php1,420 ▲354.20 ▼0.0899.94 ▼0.5740.80 ▼5.52
Glossary Option /wp-admin/options-general.php?page=slug-agency-lexique1,2592.0222.4528.50
Lexiques /wp-admin/edit.php?post_type=lexique_agency1,0941.9729.5729.42
Add new Lexique /wp-admin/post-new.php?post_type=lexique_agency2,2227.63174.60112.03

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=slug-agency-lexique
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=slug-agency-lexique
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lexiqueagency/classes/post_type.php
    • > /wp-content/plugins/lexiqueagency/classes/lexique.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lexiqueagency/index.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

lexiqueagency/index.php 92% from 13 tests

The principal PHP file in "lexiqueAgency" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lexiqueagency.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin621 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP344135429
CSS11666
PO File1273564
JavaScript22462

PHP code Passed 2 tests

Analyzing 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.19
Average class complexity22.00
▷ Minimum class complexity4.00
▷ Maximum class complexity40.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.85KB5.08KB▼ 75.61%
icon_lexique.png1.36KB1.32KB▼ 3.02%
screenshot1.png20.85KB5.08KB▼ 75.61%