10% simplified-content

Code Review | Simplified Content

WordPress plugin Simplified Content scored10%from 54 tests.

About plugin

  • Plugin page: simplified-content
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.5
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Apr 19, 2016
  • Number of updates: 19
  • Update frequency: every 7.3 days
  • Top authors: Lucien Taylor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /856 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/simplified-content/businessobjects/SCBrowserDetector.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; SCBrowserDetector has a deprecated constructor

Server metrics [RAM: ▼0.20MB] [CPU: ▼25.18ms] Passed 4 tests

This is a short check of server-side resources used by Simplified Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.46 ▼0.94
Dashboard /wp-admin3.16 ▼0.1930.15 ▼41.61
Posts /wp-admin/edit.php3.23 ▼0.1335.34 ▼12.88
Add New Post /wp-admin/post-new.php5.47 ▼0.4270.59 ▼34.81
Media Library /wp-admin/upload.php3.18 ▼0.0526.33 ▼11.41
Simplified Content /wp-admin/options-general.php?page=lb-admin3.1429.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simplified Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▲0.071.62 ▼0.3643.01 ▼1.24
Dashboard /wp-admin2,196 ▲195.62 ▲0.0193.71 ▼3.1037.77 ▼4.77
Posts /wp-admin/edit.php2,101 ▼22.02 ▲0.0238.90 ▲0.3134.89 ▼0.59
Add New Post /wp-admin/post-new.php1,529 ▼823.10 ▲4.85639.19 ▼49.2353.93 ▼16.47
Media Library /wp-admin/upload.php1,401 ▲14.12 ▼0.10101.55 ▲3.9042.83 ▼5.03
Simplified Content /wp-admin/options-general.php?page=lb-admin9742.1324.3131.08

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
You still need to fix the following
  • The uninstall procedure has failed, 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 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=lb-admin
    • > Notice in wp-content/plugins/simplified-content/ooawpframework/businessobjects/plugins/OOAWPPluginOptionsPage.php+84
    Only variables should be passed by reference
    • > GET request to /wp-admin/options-general.php?page=lb-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=lb-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=lb-admin
    • > Notice in /tmp/OTLPARSERJXXIC+16
    Undefined index: sitemap-page-id

SRP 0% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simplified-content/views/default-header.php
    • > /wp-content/plugins/simplified-content/views/default-footer.php
  • 262× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      include_once(OOA_CORE_ROOT/transfer/framework/ServiceMethodDescriptor.php): failed to open stream: No such file or directory in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/framework/ServiceDescriptor.php on line 4
    • > PHP Warning
      Use of undefined constant OOA_CORE_ROOT - assumed 'OOA_CORE_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/framework/ServiceDispatcher.php on line 7
    • > PHP Warning
      include_once(): Failed opening 'OOA_CORE_ROOT/transfer/framework/FormatToObjectConverter.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/framework/ServiceDispatcher.php on line 6
    • > PHP Warning
      Use of undefined constant OOAWPFRAMEWORK_ROOT - assumed 'OOAWPFRAMEWORK_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplified-content/ooawpframework/businessobjects/plugins/OOAWPPluginOptionsPage.php on line 4
    • > PHP Warning
      include_once(OOA_CORE_ROOT/common/util/ArrayUtils.php): failed to open stream: No such file or directory in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/framework/ServiceDispatcher.php on line 5
    • > PHP Warning
      include_once(): Failed opening 'OOA_CORE_ROOT/transfer/json/JSONToObjectConverter.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simplified-content/ooawpframework/businessobjects/ajax/OOAWPServiceDispatcher.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'OOA_CORE_ROOT/transfer/framework/exception/NoServiceMethodSuppliedException.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/framework/ServiceDispatcher.php on line 12
    • > PHP Warning
      Use of undefined constant OOA_CORE_ROOT - assumed 'OOA_CORE_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/json/ObjectToJSONConverter.php on line 4
    • > PHP Warning
      include_once(OOA_CORE_ROOT/transfer/framework/exception/ServiceMethodNotFoundException.php): failed to open stream: No such file or directory in wp-content/plugins/simplified-content/ooawpframework/ooacore/transfer/framework/ServiceDispatcher.php on line 15
    • > PHP Warning
      include_once(): Failed opening 'OOAWPFRAMEWORK_ROOT/businessobjects/common/OOAModelAndView.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simplified-content/ooawpframework/businessobjects/plugins/OOAWPPluginOptionsPage.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: internet explorer, content, legacy browsers, simple navigation, ie 8...

simplified-content/simplified-content.php 85% from 13 tests

The principal PHP file in "Simplified Content" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 208 characters long)
  • Domain Path: The domain path folder does not exist ("/lang/")

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
Success! There were no dangerous files found in this plugin4,111 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
PHP781,4992,2803,893
JavaScript210897218

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.42
▷ Minimum class complexity1.00
▷ Maximum class complexity163.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes69
▷ Abstract classes57.25%
▷ Concrete classes6492.75%
▷ Final classes00.00%
Methods364
▷ Static methods4412.09%
▷ Public methods28377.75%
▷ Protected methods4612.64%
▷ Private methods359.62%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants65
▷ Global constants46.15%
▷ Class constants6193.85%
▷ Public constants61100.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
There are no PNG files in this plugin