78% fs-revenue-mazimizer

Code Review | FS Revenue Maximizer

WordPress plugin FS Revenue Maximizer scored78%from 54 tests.

About plugin

  • Plugin page: fs-revenue-mazimizer
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Dec 22, 2019
  • Number of updates: 17
  • Update frequency: every 130.5 days
  • Top authors: thedark (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,132 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
Install script ran successfully

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

Server-side resources used by FS Revenue Maximizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.70 ▲7.04
Dashboard /wp-admin3.32 ▼0.0245.56 ▼11.87
Posts /wp-admin/edit.php3.37 ▲0.0244.45 ▼0.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.11 ▼27.76
Media Library /wp-admin/upload.php3.25 ▲0.0233.92 ▲0.10
FS Revenue Maximizer /wp-admin/options-general.php?page=fs-revenue-mazimizer3.1927.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

FS Revenue Maximizer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.28 ▼1.282.27 ▲0.4154.02 ▲9.85
Dashboard /wp-admin2,213 ▲224.81 ▼0.06100.71 ▼2.6342.97 ▲0.91
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0137.17 ▼2.9834.44 ▼0.84
Add New Post /wp-admin/post-new.php1,545 ▲1718.43 ▲0.29614.12 ▲4.0852.33 ▼4.40
Media Library /wp-admin/upload.php1,395 ▲74.29 ▲0.0695.24 ▼1.8840.84 ▼0.05
FS Revenue Maximizer /wp-admin/options-general.php?page=fs-revenue-mazimizer8682.0222.4924.77

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=fs-revenue-mazimizer
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=fs-revenue-mazimizer
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× 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/fs-revenue-mazimizer/fs-revenue-maximizer.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === fs-revenue-mazimizer === )
You can take inspiration from this readme.txt

fs-revenue-mazimizer/fs-revenue-maximizer.php 85% from 13 tests

The entry point to "FS Revenue Maximizer" version 1.3.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fs-revenue-mazimizer.php" instead of "fs-revenue-maximizer.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1371075

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin