72% oxcyon-2-wp

Code Review | Oxcyon to WordPress

WordPress plugin Oxcyon to WordPress scored72%from 54 tests.

About plugin

  • Plugin page: oxcyon-2-wp
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2014
  • Latest release: Aug 19, 2014
  • Number of updates: 7
  • Update frequency: every 4.1 days
  • Top authors: chriswgerber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.18ms] Passed 4 tests

An overview of server-side resources used by Oxcyon to WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.60 ▲0.09
Dashboard /wp-admin3.36 ▲0.0150.45 ▼12.86
Posts /wp-admin/edit.php3.47 ▲0.1150.45 ▼0.54
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.72 ▼19.42
Media Library /wp-admin/upload.php3.28 ▲0.0538.81 ▲2.54
Oxcyon 2 WP /wp-admin/tools.php?page=wp2ox3.2231.79

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/oxcyon-2-wp/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Oxcyon to WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.79 ▲0.191.98 ▲0.1246.74 ▲0.78
Dashboard /wp-admin2,225 ▲225.79 ▲0.7397.95 ▼4.2639.30 ▼6.16
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0235.86 ▼5.3033.12 ▼3.26
Add New Post /wp-admin/post-new.php1,548 ▲322.97 ▼0.33653.46 ▼16.8456.00 ▲6.47
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.04100.26 ▼3.0047.39 ▲0.06
Oxcyon 2 WP /wp-admin/tools.php?page=wp2ox1,0262.0225.9546.04

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=wp2ox
    • > Notice in wp-content/plugins/oxcyon-2-wp/admin/wp2ox_admin.php+363
    Trying to access array offset on value of type bool

SRP 0% from 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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/oxcyon-2-wp/class_wp2ox_format.php
    • > /wp-content/plugins/oxcyon-2-wp/class_wp2ox_tidy.php
  • 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'WP2OX_DIR/class_wp2ox.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 7
    • > PHP Warning
      include(): Failed opening 'WP2OX_DIR/class_wp2ox_data.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 13
    • > PHP Warning
      Use of undefined constant WP2OX_DIR - assumed 'WP2OX_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 23
    • > PHP Warning
      Use of undefined constant WP2OX_DIR - assumed 'WP2OX_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 19
    • > PHP Warning
      Use of undefined constant WP2OX_DIR - assumed 'WP2OX_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 13
    • > PHP Warning
      include(): Failed opening 'WP2OX_DIR/class_wp2ox_category.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 19
    • > PHP Warning
      include(): Failed opening 'WP2OX_DIR/class_wp2ox_author.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 16
    • > PHP Warning
      include(WP2OX_DIR/class_wp2ox_category.php): failed to open stream: No such file or directory in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 19
    • > PHP Fatal error
      Uncaught Error: Class 'wp2ox_category' not found in wp-content/plugins/oxcyon-2-wp/class_wp2ox_tag.php:17
    • > PHP Warning
      include(WP2OX_DIR/class_wp2ox_tag.php): failed to open stream: No such file or directory in wp-content/plugins/oxcyon-2-wp/wp2ox_import.php on line 23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: oxcyon centralpoint, centralpoint, oxcyon

oxcyon-2-wp/wp2ox_plugin.php 92% from 13 tests

The primary PHP file in "Oxcyon to WordPress" version 0.3.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("oxcyon-2-wp.php" instead of "wp2ox_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,017 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13318681949
Markdown140068

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.71
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods68
▷ Static methods22.94%
▷ Public methods5682.35%
▷ Protected methods710.29%
▷ Private methods57.35%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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