90% old-core-files

Code Review | Old Core Files

WordPress plugin Old Core Files scored90%from 54 tests.

About plugin

  • Plugin page: old-core-files
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2013
  • Latest release: Jul 6, 2019
  • Number of updates: 35
  • Update frequency: every 67.2 days
  • Top authors: ramiy (62.86%)maor (40%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /20,746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.21ms] Passed 4 tests

A check of server-side resources used by Old Core Files
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.25 ▼3.11
Dashboard /wp-admin3.36 ▲0.0547.61 ▼2.31
Posts /wp-admin/edit.php3.47 ▲0.1148.10 ▲2.46
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.96 ▲2.76
Media Library /wp-admin/upload.php3.28 ▲0.0534.65 ▲2.11
Old Core Files /wp-admin/tools.php?page=old-core-files3.5036.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Old Core Files
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.14 ▼1.241.73 ▼0.0243.33 ▼5.13
Dashboard /wp-admin2,213 ▲255.90 ▲1.0295.79 ▼24.9839.56 ▼7.26
Posts /wp-admin/edit.php2,093 ▲222.00 ▼0.0438.73 ▲2.6036.54 ▲0.92
Add New Post /wp-admin/post-new.php1,545 ▲2218.18 ▼5.08613.41 ▼41.2561.89 ▲11.61
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0498.49 ▲4.0040.73 ▼0.34
Old Core Files /wp-admin/tools.php?page=old-core-files9752.2636.4524.94

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: You can look at the official readme.txt

old-core-files/old-core-files.php Passed 13 tests

"Old Core Files" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
99 characters long description:
Old Core Files notifies the user when old core files which are due removal exist in the filesystem.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin240 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3106220240

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.50
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png87.71KB26.81KB▼ 69.43%
screenshot-1.png253.98KB90.94KB▼ 64.20%