83% 7lorem

Code Review | 7lorem

WordPress plugin 7lorem scored 83% from 54 tests.

About plugin

  • Plugin page: 7lorem
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 5.9.2
  • First release: Aug 29, 2014
  • Latest release: Jan 14, 2015
  • Number of updates: 14
  • Update frequency: every 9.9 days
  • Top authors: alabdrezvan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,473 total downloads


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

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

This is a short check of server-side resources used by 7lorem
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0259.26 ▲3.08
Dashboard /wp-admin3.42 ▲0.0135.05 ▼3.62
Posts /wp-admin/edit.php3.65 ▲0.0153.24 ▲14.09
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.35 ▼1,187.44
Media Library /wp-admin/upload.php3.30 ▲0.0125.42 ▼12.91

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/7lorem/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/7lorem/assets/banner-772\303\227\333\262\333\265\333\260.png"
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

7lorem: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.94 ▼0.026.23 ▲0.672.48 ▲0.35
Dashboard /wp-admin2,895 ▲406.15 ▼0.03114.76 ▼26.86161.52 ▼38.83
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0186.06 ▲20.54144.70 ▼2.48
Add New Post /wp-admin/post-new.php1,719 ▼3322.27 ▲0.92399.51 ▼89.85208.95 ▲38.96
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.06145.57 ▼0.98255.90 ▲66.12

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
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_lo_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/7lorem/Tarhvare.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Screen shot (screenshot-1.png) in preview)
  • Tested up to: Invalid version format
  • Plugin Name: Please specify the plugin name on the first line ( === 7lorem === )
The official readme.txt might help

7lorem/Tarhvare.php 85% from 13 tests

The principal PHP file in "7lorem" v. 4.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Version: Plugin version not found
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("7lorem.php" instead of "Tarhvare.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772×۲۵۰.png118.15KB53.90KB▼ 54.38%
screenshot-1.png59.16KB30.29KB▼ 48.80%