82% earn-money-from-cuttinus-services

Code Review | Earn Money From Cuttin.US Services WP Plugin

WordPress plugin Earn Money From Cuttin.US Services WP Plugin scored82%from 54 tests.

About plugin

  • Plugin page: earn-money-from-c...
  • Plugin version: 1.1 Stable...
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Aug 26, 2014
  • Number of updates: 22
  • Update frequency: N/A
  • Top authors: amtgpt01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,637 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.50ms] Passed 4 tests

This is a short check of server-side resources used by Earn Money From Cuttin.US Services WP Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.67 ▲3.59
Dashboard /wp-admin3.34 ▼0.0045.85 ▼13.03
Posts /wp-admin/edit.php3.39 ▲0.0443.64 ▼5.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.60 ▼17.91
Media Library /wp-admin/upload.php3.26 ▲0.0431.90 ▼1.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Earn Money From Cuttin.US Services WP Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.13 ▼0.191.62 ▼2.7343.78 ▼1.79
Dashboard /wp-admin2,224 ▲365.87 ▲0.91111.25 ▼5.1171.66 ▲24.20
Posts /wp-admin/edit.php2,104 ▲152.01 ▲0.0236.96 ▼0.9632.48 ▲0.16
Add New Post /wp-admin/post-new.php1,547 ▲2823.17 ▲0.09819.39 ▲227.6056.40 ▼0.06
Media Library /wp-admin/upload.php1,400 ▲94.23 ▼0.07100.57 ▼1.0770.07 ▲24.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/earn-money-from-cuttinus-services/cuttin.us.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #3 (The Plugin settings page), #2 (Screen get the user ID - Cuttin.US)
  • Plugin Name: You should set the name of your plugin on the first line ( === earn-money-from-cuttinus-services === )
  • Tags: There are too many tags (32 tag instead of maximum 10)
The official readme.txt is a good inspiration

earn-money-from-cuttinus-services/cuttin.us.php 77% from 13 tests

The principal PHP file in "Earn Money From Cuttin.US Services WP Plugin" v. 1.1 Stable... is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("earn-money-from-cuttinus-services.php" instead of "cuttin.us.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1.1 Stable...")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 852 characters long)

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
Success! There were no dangerous files found in this plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11932153

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 1.04MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png234.95KB62.61KB▼ 73.35%
images/screen_plugin.png263.42KB78.21KB▼ 70.31%
images/wp_cuttin_us_banner.png60.72KB18.68KB▼ 69.24%
screenshot-1.png263.42KB78.21KB▼ 70.31%
images/uid.png234.95KB62.61KB▼ 73.35%