89% offerfwd

Code Review | Offerfwd

WordPress plugin Offerfwd scored 89% from 54 tests.

About plugin

  • Plugin page: offerfwd
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 1, 2021
  • Latest release: Feb 1, 2021
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: optintelligence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 352 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.48ms] Passed 4 tests

This is a short check of server-side resources used by Offerfwd
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.39 ▼4.16
Dashboard /wp-admin3.31 ▲0.0044.32 ▼1.89
Posts /wp-admin/edit.php3.36 ▲0.0047.16 ▲0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.57 ▼10.36
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▼1.49

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Offerfwd
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.051.75 ▲0.2341.60 ▲2.38
Dashboard /wp-admin2,200 ▲155.82 ▼0.07102.58 ▼6.8140.22 ▼8.29
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0339.08 ▼0.9935.97 ▼2.09
Add New Post /wp-admin/post-new.php1,534 ▲2023.40 ▲5.86600.02 ▼16.0553.25 ▲7.67
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.0495.01 ▼10.1544.19 ▼1.33

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: opt-in, monetization, ads

offerfwd/offerfwd.php 85% from 13 tests

The entry point to "Offerfwd" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected135 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP687310135

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin