68% fasli-monetization

Code Review | Fasli monetization

WordPress plugin Fasli monetization scored68%from 54 tests.

About plugin

  • Plugin page: fasli-monetization
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Oct 9, 2016
  • Latest release: Mar 3, 2017
  • Number of updates: 10
  • Update frequency: every 14.6 days
  • Top authors: adsnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /734 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼33.60ms] Passed 4 tests

Server-side resources used by Fasli monetization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.23 ▼1.68
Dashboard /wp-admin3.03 ▼0.2822.32 ▼29.16
Posts /wp-admin/edit.php3.03 ▼0.3324.75 ▼23.50
Add New Post /wp-admin/post-new.php3.03 ▼2.8623.33 ▼68.88
Media Library /wp-admin/upload.php3.03 ▼0.2022.15 ▼12.87
Fasli website monetization Settings /wp-admin/options-general.php?page=fasli-monetization/fasli_monetization.php3.0322.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Fasli monetization: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.53 ▼0.711.71 ▼0.5344.04 ▼4.09
Dashboard /wp-admin2,210 ▲194.81 ▼0.06111.09 ▲7.5438.84 ▼5.09
Posts /wp-admin/edit.php2,096 ▲282.03 ▲0.0338.79 ▲1.9936.30 ▲1.02
Add New Post /wp-admin/post-new.php1,517 ▼1917.38 ▼5.68670.54 ▲28.6452.88 ▲0.76
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0495.31 ▼7.0140.80 ▼5.30
Fasli website monetization Settings /wp-admin/options-general.php?page=fasli-monetization/fasli_monetization.php9432.0623.5329.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=fasli-monetization/fasli_monetization.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fasli-monetization/fasli_monetization.php:202

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: easylink, money, fasli, ad, shortlink

fasli-monetization/fasli_monetization.php 92% from 13 tests

The primary PHP file in "Fasli monetization" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fasli-monetization.php" instead of "fasli_monetization.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,174 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211417994
PHP1168180

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.90
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%
Functions14
▷ Named functions1071.43%
▷ Anonymous functions428.57%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin