84% oopcee

Code Review | Oopcee

WordPress plugin Oopcee scored84%from 54 tests.

About plugin

  • Plugin page: oopcee
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Feb 19, 2017
  • Number of updates: 14
  • Update frequency: every 1.0 days
  • Top authors: oopcee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /530 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Oopcee
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.76 ▼6.40
Dashboard /wp-admin3.31 ▼0.0443.35 ▼16.90
Posts /wp-admin/edit.php3.36 ▲0.0044.04 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.09 ▼13.06
Media Library /wp-admin/upload.php3.23 ▲0.0032.03 ▼0.64

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Oopcee: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.434.42 ▲2.5739.76 ▼4.55
Dashboard /wp-admin2,206 ▲214.90 ▼0.9898.94 ▼13.1837.03 ▼5.01
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0134.07 ▼2.8232.24 ▼1.42
Add New Post /wp-admin/post-new.php1,533 ▲1423.05 ▼0.14594.20 ▼43.5650.97 ▼2.54
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.03103.01 ▼0.1845.18 ▲4.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Oopcee' not found in wp-content/plugins/oopcee/controllers/changepassword.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Oopcee' not found in wp-content/plugins/oopcee/controllers/oopcee.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (74 tag instead of maximum 10)
You can look at the official readme.txt

oopcee/oopcee.php Passed 13 tests

The principal PHP file in "Oopcee" v. 1.02 is loaded by WordPress automatically on each request
39 characters long description:
Oopcee integration plugin for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,911 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS87487,972
JavaScript81,0634885,171
PHP79765539
SVG100229

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity8.67
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/images/icon-2-oopcee.png1.31KB0.74KB▼ 43.41%
views/images/oopcee-icon-png.png1.37KB0.71KB▼ 48.08%
views/images/oopcee_logo_grey_huge.png6.15KB3.11KB▼ 49.41%