10% 1-source-cleaner

Code Review | 1 Source Cleaner

WordPress plugin 1 Source Cleaner scored 10% from 54 tests.

About plugin

  • Plugin page: 1-source-cleaner
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 5.9.2
  • First release: Jan 17, 2012
  • Latest release: Jan 19, 2012
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: elevengraffit@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,428 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/1-source-cleaner/1-source-cleaner.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; source_cleaner has a deprecated constructor

Server metrics [RAM: ▼2.50MB] [CPU: ▼345.35ms] Passed 4 tests

A check of server-side resources used by 1 Source Cleaner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼1.645.21 ▼47.33
Dashboard /wp-admin1.89 ▼1.524.16 ▼63.69
Posts /wp-admin/edit.php1.89 ▼1.753.70 ▼35.15
Add New Post /wp-admin/post-new.php1.89 ▼5.084.87 ▼1,235.22
Media Library /wp-admin/upload.php1.89 ▼1.413.91 ▼20.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 1 Source Cleaner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲1414.68 ▼1.366.38 ▲0.452.05 ▼0.57
Dashboard /wp-admin2,895 ▲376.10 ▼0.10118.42 ▼24.79160.28 ▼11.88
Posts /wp-admin/edit.php2,688 ▼03.23 ▼0.0065.80 ▼2.64144.66 ▼10.71
Add New Post /wp-admin/post-new.php1,668 ▲2819.00 ▼1.84402.14 ▼18.21164.73 ▼59.62
Media Library /wp-admin/upload.php1,698 ▼05.48 ▼0.05141.50 ▲2.20185.71 ▼75.34

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/1-source-cleaner/1-source-cleaner.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; source_cleaner has a deprecated constructor

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1-source-cleaner/2-source-cleaner-ad.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1-source-cleaner/1-source-cleaner.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (2.)
The official readme.txt is a good inspiration

1-source-cleaner/1-source-cleaner.php 92% from 13 tests

This is the main PHP file of "1 Source Cleaner" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin68 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162568

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png41.96KB12.98KB▼ 69.06%
screenshot-2.png256.55KB103.75KB▼ 59.56%