10% content-for-money

Code Review | Content For Money

WordPress plugin Content For Money scored 10% from 54 tests.

About plugin

  • Plugin page: content-for-money
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 27, 2012
  • Latest release: Jul 9, 2018
  • Number of updates: 41
  • Update frequency: every 52.3 days
  • Top authors: paaggeli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,431 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/content-for-money/contentformoney.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; Contentformoney has a deprecated constructor

Server metrics [RAM: ▼0.95MB] [CPU: ▼37.09ms] Passed 4 tests

Analyzing server-side resources used by Content For Money
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.23 ▼8.42
Dashboard /wp-admin3.00 ▼0.3125.07 ▼44.65
Posts /wp-admin/edit.php3.00 ▼0.3626.54 ▼25.14
Add New Post /wp-admin/post-new.php3.00 ▼2.8926.84 ▼64.96
Media Library /wp-admin/upload.php3.00 ▼0.2323.98 ▼13.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Content For Money
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.21 ▼0.421.70 ▼5.1444.50 ▼1.98
Dashboard /wp-admin2,210 ▲74.84 ▼0.01109.52 ▲11.0040.71 ▲0.01
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0340.38 ▲4.6736.39 ▲2.56
Add New Post /wp-admin/post-new.php1,537 ▲323.26 ▲0.26691.01 ▲114.6252.51 ▼0.04
Media Library /wp-admin/upload.php1,395 ▲74.15 ▼0.10104.47 ▲5.9549.92 ▲3.73
Content For Money /wp-admin/contentformoney.php260.440.1016.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test

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
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/content-for-money/contentformoney.php:215

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/contentformoney.php
    • > Network (severe)
    wp-admin/contentformoney.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Admin Panel), #2 (Post Page)
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

content-for-money/contentformoney.php 85% from 13 tests

"Content For Money" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("content-for-money.php" instead of "contentformoney.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 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
Success! There were no dangerous files found in this plugin189 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11416189

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

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