84% srizon-lorem

Code Review | Srizon Lorem

WordPress plugin Srizon Lorem scored 84% from 54 tests.

About plugin

  • Plugin page: srizon-lorem
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.8
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Mar 31, 2016
  • Number of updates: 7
  • Update frequency: every 87.3 days
  • Top authors: afzal_du (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Srizon Lorem
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.08 ▼21.89
Dashboard /wp-admin3.32 ▲0.0147.43 ▼3.48
Posts /wp-admin/edit.php3.37 ▲0.0150.64 ▲1.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.27 ▲2.61
Media Library /wp-admin/upload.php3.24 ▲0.0137.60 ▲5.00

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Srizon Lorem
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼0.804.05 ▲2.2237.56 ▼5.14
Dashboard /wp-admin2,206 ▲184.87 ▼0.21108.60 ▼2.7240.86 ▼0.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0140.32 ▼0.4136.63 ▲0.74
Add New Post /wp-admin/post-new.php1,530 ▼423.21 ▼0.03615.18 ▼40.9450.68 ▼2.24
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.02102.10 ▲1.1147.21 ▲6.48

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/srizon-lorem/admin/buttons/lorem.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/srizon-lorem/admin/buttons/lorem.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/srizon-lorem/admin/buttons/lorem.php:2

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 Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: lorem-ipsum, button, tinymce, lorem

srizon-lorem/index.php 85% from 13 tests

"Srizon Lorem" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("srizon-lorem.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected77 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12035
PHP391632
CSS10010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin