90% ocean-contact-info

Code Review | Ocean Contact Info

WordPress plugin Ocean Contact Info scored 90% from 54 tests.

About plugin

  • Plugin page: ocean-contact-info
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 14, 2023
  • Latest release: Sep 25, 2023
  • Number of updates: 14
  • Update frequency: every 18.1 days
  • Top authors: philstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 966 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 gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.04ms] Passed 4 tests

Server-side resources used by Ocean Contact Info
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.94 ▼3.20
Dashboard /wp-admin3.43 ▲0.1246.13 ▼4.33
Posts /wp-admin/edit.php3.48 ▲0.1246.17 ▼0.42
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.32 ▼8.21
Media Library /wp-admin/upload.php3.35 ▲0.1234.09 ▲1.04

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
ocean-contact-info-version
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Ocean Contact Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.48 ▲0.281.77 ▼0.1436.50 ▼6.33
Dashboard /wp-admin2,203 ▲155.77 ▲0.94107.57 ▼8.6939.68 ▼7.17
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0340.69 ▲4.9234.97 ▼0.51
Add New Post /wp-admin/post-new.php1,548 ▲3423.05 ▲5.58605.95 ▲2.9955.90 ▲10.24
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0194.61 ▼3.1042.66 ▼0.63

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • ocean-contact-info-version

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: information, oceanwp, contacts

ocean-contact-info/ocean-contact-info.php Passed 13 tests

The principal PHP file in "Ocean Contact Info" v. 1.0.2 is loaded by WordPress automatically on each request
80 characters long description:
Add some contact information about your company or product in after header inner

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
No dangerous file extensions were detected1,536 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP31802641,024
JavaScript256330
CSS314199
Sass110083

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity69.00
▷ Minimum class complexity69.00
▷ Maximum class complexity69.00
Average method complexity6.23
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods13
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin