84% zplmod-faq-lite

Code Review | ZPLMOd - FAQ Lite

WordPress plugin ZPLMOd - FAQ Lite scored 84% from 54 tests.

About plugin

  • Plugin page: zplmod-faq-lite
  • Plugin version: 1.7.24
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 21, 2017
  • Latest release: Jul 23, 2017
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: naksheth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.18ms] Passed 4 tests

Analyzing server-side resources used by ZPLMOd - FAQ Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0168.18 ▲23.66
Dashboard /wp-admin3.31 ▲0.0144.03 ▼7.79
Posts /wp-admin/edit.php3.36 ▲0.0140.94 ▼10.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.14 ▼4.20
Media Library /wp-admin/upload.php3.23 ▲0.0132.49 ▼2.25
FAQ.Lite /wp-admin/options-general.php?page=zplmod_faqlite3.2331.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ZPLMOd - FAQ Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.79 ▲0.602.77 ▲0.7245.93 ▼13.13
Dashboard /wp-admin2,215 ▲304.86 ▼0.05113.25 ▼10.8743.25 ▼11.05
Posts /wp-admin/edit.php2,095 ▲62.15 ▲0.1662.06 ▲24.4157.58 ▲23.51
Add New Post /wp-admin/post-new.php1,528 ▼1423.02 ▲4.84610.24 ▼35.2357.74 ▲1.53
Media Library /wp-admin/upload.php1,394 ▲124.25 ▲0.0796.94 ▼36.3042.35 ▼17.86
FAQ.Lite /wp-admin/options-general.php?page=zplmod_faqlite9022.0227.7328.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/zplmod-faq-lite/zplmod-faqlite.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: faq, questions and answers, faqs, faq widget, woocommerce faq...

zplmod-faq-lite/zplmod-faqlite.php 85% from 13 tests

This is the main PHP file of "ZPLMOd - FAQ Lite" version 1.7.24, 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zplmod-faq-lite.php" instead of "zplmod-faqlite.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 145 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 plugin117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13823117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.08MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png40.88KB43.34KB0.00%
screenshot-1.png45.95KB48.32KB0.00%